-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in storage url signing #1346
Comments
Yes, i do confirm it is a bug. I will make PR it ASAP. Haven't you considered Content-Disposition as a workaround? |
Thanks, @ostronom. The |
@mziccard any chance you can cut a point release that includes this fix? |
Ehi @mickeyreiss this is already out as part of google-cloud 0.5.0, see release notes |
@mziccard Sorry for the noise. Thanks! |
github-actions bot
pushed a commit
that referenced
this issue
Sep 16, 2022
🤖 I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ostronom @mziccard It seems #1277 has caused a regression in my code. I use
/
characters in the blob names, and they are now being unexpectedly encoded as%2F
in the signed path.It seems that object naming requirements are not equivalent to URL encoding.
When I round-trip a signed url,
Storage#get
now fails to find the successfully uploaded file (confirmed viagsutil
and Cloud Console).My understanding is that
/
s are valid characters for blob names. From the same page quoted above:It seems like this library needs to use a different escape function for object names. (Also, I noticed that the new test
testSignUrlForBlobWithSpecialChars
, does not cover slashes.)Does this make sense? What is the intended behavior for blob names containing slashes?
repro test:
The text was updated successfully, but these errors were encountered: