Export to GitHub

lits3 - issue #37

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


Posted on Dec 4, 2013 by Happy Camel

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/CopyObject.cs#42)

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

Status: New

Labels:
Type-Defect Priority-Medium