Skip to content
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

Header param x-amz-copy-source must be URL encoded #37

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Header param x-amz-copy-source must be URL encoded #37

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use the method  CopyObject from service with  a param sourceKey that have 
special char (like Cópia.txt)

What is the expected output? What do you see instead?
A http responde with code 200 was expected, but we got a error 403

What version of the product are you using? On what operating system?
1.0.1

Please provide any additional information below.
Fixed that changing the line 42 of 
CopyObjectRequest(https://code.google.com/p/lits3/source/browse/trunk/LitS3/Copy
Object.cs#42)

Diff line:
<<
 WebRequest.Headers[S3Headers.CopySource] = sourceBucketName + "/" + HttpUtility.UrlEncode(sourceObjectKey);
<<
>>
 WebRequest.Headers[S3Headers.CopySource] = sourceBucketName + "/" + sourceObjectKey;
>>

Original issue reported on code.google.com by gustavos...@gmail.com on 4 Dec 2013 at 9:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant