Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-726

RequestAuthorizeSignature does not combine header fields with the same name into one

    XMLWordPrintableJSON

Details

    Description

      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 :

      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
      

      The expected string to sign is:

      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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mprz Maciej Przewoźnik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: