Bug #18355
openwhen call the multiparts upload API TransferManager.upload() by s3 java API , i got a excepiton 'AmazonS3Exception'
0%
Description
I fount that when the parameter in the URL incloudes characters '-,_.~', got excepiton 'AmazonS3Exception' , I looked at the s3 doc and thought the rgw's implement might be wrong.
the example code : http://docs.aws.amazon.com/AmazonS3/latest/dev/HLuploadFileJava.html
the s3 doc:
http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
URI-encode each parameter name and value according to the following rules:
Do not URI-encode any of the unreserved characters that RFC 3986 defines: A-Z, a-z, 0-9, hyphen ( - ), underscore ( _ ), period ( . ), and tilde ( ~ ).
Percent-encode all other characters with %XY, where X and Y are hexadecimal characters (0-9 and uppercase A-F). For example, the space character must be encoded as %20 (not using '+', as some encoding schemes do) and extended UTF-8 characters must be in the form %XY%ZA%BC.
Files