jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciej Przewoźnik (JIRA) <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-726) RequestAuthorizeSignature does not combine header fields with the same name into one
Date Mon, 22 Sep 2014 14:50:34 GMT
Maciej Przewoźnik created JCLOUDS-726:
-----------------------------------------

             Summary: RequestAuthorizeSignature does not combine header fields with the same
name into one
                 Key: JCLOUDS-726
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-726
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-drivers
    Affects Versions: 1.7.2
            Reporter: Maciej Przewoźnik


http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html states that while constructing
the CanonicalizedAmzHeaders element, header fields with the same name must be combined into
one. 

However, 
the following string to sign was computed by jclouds for "Example Upload" request from http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
:

{noformat}
PUT
4gJE4saaMU4BqNR0kLY+lw==
application/x-download
Tue, 27 Mar 2007 21:06:08 +0000
x-amz-acl:public-read
x-amz-meta-checksumalgorithm:crc32
x-amz-meta-filechecksum:0x02661779
x-amz-meta-reviewedby:jane@johnsmith.net
x-amz-meta-reviewedby:joe@johnsmith.net
/static.johnsmith.net/db-backup.dat.gz
{noformat}

The expected string to sign is:
{noformat}
PUT
4gJE4saaMU4BqNR0kLY+lw==
application/x-download
Tue, 27 Mar 2007 21:06:08 +0000
x-amz-acl:public-read
x-amz-meta-checksumalgorithm:crc32
x-amz-meta-filechecksum:0x02661779
x-amz-meta-reviewedby:joe@johnsmith.net,jane@johnsmith.net
/static.johnsmith.net/db-backup.dat.gz
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message