You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
signedUrl will now be https://storage.googleapis.com/my_bucket//file.jpg?<signature> instead of https://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.
Environment details
@google-cloud/storageversion: 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/storageversion to 4.1.2 I'm experiencing an issue signing files/paths that start with a slash.Reproduce:
signedUrlwill 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