Skip to content

Signed URL: Special Chars in file name not handled properly in V4 version #7835

@chvreddy

Description

@chvreddy

Thanks for stopping by to let us know something could be better!

Environment details

  • OS: MAC
  • Ruby version: ruby 2.4.9p362 (2019-10-02 revision 67824) [x86_64-darwin19]
  • Gem name and version: gem 'google-cloud-storage', '1.27.0'

Steps to reproduce

  1. ...

Code example

gcs_object.signed_url( method: "GET", expires: 5 * 60, issuer: issuer, signer: signer, version: :v4 )

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: bucket_name/folder1/id,+firstn,+lastn/image1.jpeg</Details>
</Error>

With V4 unable to convert special char + to '%20 hence getting above error.

Code example

gcs_object.signed_url( method: "GET", expires: 5 * 60, issuer: issuer, signer: signer, version: :v2 )

When using version V2, Able to download the image.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions