[ 
https://issues.apache.org/jira/browse/LIBCLOUD-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204077#comment-13204077
 ] 

Florent Cayré commented on LIBCLOUD-149:
----------------------------------------

Following code :

 if key.lower() in special_header_keys:
     special_header_values[key.lower()] = value.lower().strip()

should probably be patched as follows :

 if key.lower() in special_header_keys:
     special_header_values[key.lower()] = value.strip()

Indeed, I do not thing any header value should be lowered.

                
> S3 signature : Content-MD5 header value case must not be lowered
> ----------------------------------------------------------------
>
>                 Key: LIBCLOUD-149
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-149
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.7.1
>            Reporter: Florent Cayré
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Multi-object delete calls crash with signature error because the Content-MD5 
> is lowered in S3Connection._get_aws_auth_param ; the string to sign as 
> returned by AWS in the error response shows it ; moreover, nothing indicates 
> the lower case in the AWS official documentation : 
> http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to