Skip to content

@google-cloud/storage file getSignedUrl returns trailing dot in URL #2249

@ShaharHD

Description

@ShaharHD

Upon updating @google-cloud/storage to the latest package version (1.1.0) introduced a trailing dot in the url.
For example: https://storage.googleapis.com./<bucket name>/<file name>...

I've traced the cause of this due to #2214

It seems valid by FQDN, on iOS, curl and wget no issue, but on Android: HTTP FAILED: javax.net.ssl.SSLHandshakeException: java.lang.IllegalArgumentException: Server name value of host_name cannot have the trailing dot
(using OkHttp and Fresco)

Is this by design?

Environment details

  • OS: Heroku and MacOS
  • Node.js: 6.10.2
  • yarn version: 0.23.2
  • "@google-cloud/storage": "^1.1.0"

Steps to reproduce

  1. generate a signedUrl for file

On Stackoverflow

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions