mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1] [MERGED] Using %20 instead of the plus (+) sign for encoding spaces #1306
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1
Author: @dejaeghered
Created: 12/17/2013
Status: ✅ Merged
Merged: 12/17/2013
Merged by: @rrizun
Base:
master← Head:master📝 Commits (1)
d5626feChanged url encoding of space character to use %20 instead of the plus (+) sign.📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/string_util.cpp(+3 -1)📄 Description
I am testing s3fs against a third party s3 storage solution and noticed s3fs-fuse using the plus character to encode spaces in URI. Avoiding the discussion about weither or not this should be ok. I believe the proper way of encoding spaces is the method specified in the HTTP standard, using "%20".
While Amazon accepts these requests they also say not to use them.
from Amazon @ http://docs.aws.amazon.com/general/latest/gr/signature-version-2.html
Note:
Be sure to URI encode the GET request. For example, blank spaces in your HTTP GET request should be encoded as %20. Although an unencoded space is normally allowed by the HTTP protocol specification, the use of unencoded characters creates an invalid signature in your Query request. Do not encode spaces as a plus sign (+) as this will cause errors.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.