Signing file with leading slash using getSignedUrl results in double slash #947
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
type: question
Request for information or clarification. Not an issue.
Environment details
@google-cloud/storage
version: 4.1.2 (as part of firebase-admin-node 8.8.0)Steps to reproduce
After upgrading to firebase-admin-node 8.8.0, which updates
@google-cloud/storage
version to 4.1.2 I'm experiencing an issue signing files/paths that start with a slash.Reproduce:
signedUrl
will now behttps://storage.googleapis.com/my_bucket//file.jpg?<signature>
instead ofhttps://storage.googleapis.com/my_bucket/file.jpg?<signature>
. Notice the dobule slash in the first url; files with a double slash in the url are not accessible on cloud storage.I would expect files that start with a slash to reference the root of the bucket (as an absolute path), and I would not expect the library to insert an extra slash.
This is probably related to the change in: #820
The text was updated successfully, but these errors were encountered: