]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fix s3 object uploads with chunked transfers and v4 signatures. 15965/head 15990/head
authorMarcus Watts <mwatts@redhat.com>
Wed, 28 Jun 2017 08:03:39 +0000 (04:03 -0400)
committerMarcus Watts <mwatts@redhat.com>
Wed, 28 Jun 2017 08:03:39 +0000 (04:03 -0400)
commit82a7aa9e3eabfde4a82046d78aad2dadbfc0d8e1
tree0444d5c481781f6bf2971b0c7afeddc4e022607e
parentac3c6c5e435a8d7546dc7249a80d9bd8a6497cae
Fix s3 object uploads with chunked transfers and v4 signatures.

With aws-sdk-java 1.11, large uploads use chunked transfer by default,
and v4 signatures are the default.  The java sdk uses a slightly different
string "AWS4-HMAC-SHA256-PAYLOAD" when constructing the per-chunk signature
than ceph was using.  This same string also appears in a current
copy of s3-api.pdf , so it must be the more correct value.

Fixes: http://tracker.ceph.com/issues/20447
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_auth_s3.h