rightscale/right_aws — Issue #114: get_link does not url encode "+" symbols correctly, causing incorrect/corrupt URLs.
Author: rbroemeling
Created: 2012-01-30 14:58:26+00:00
State: open

A get_link call on a file that has a "+" in it's name does not get URL encoded correctly, and thus the actual fetch results in a NoSuchKey error from Amazon S3.

i.e. given a key called "document_versions/123456/foo + bar.pdf"

this SHOULD ENCODE TO "document_versions/123456/foo%20%2B%20bar.pdf"

instead, it encodes to "document_versions/123456/foo%20+%20bar.pdf"

which in turn actually decodes to: "document_versions/123456/foo bar.pdf" (the "+" is replaced by a space).