Skip to content

use empty string for TestObjectCreateBadMd5Empty#12

Merged
alimaredia merged 1 commit intoceph:masterfrom
cbodley:wip-bad-md5-empty
Jan 20, 2023
Merged

use empty string for TestObjectCreateBadMd5Empty#12
alimaredia merged 1 commit intoceph:masterfrom
cbodley:wip-bad-md5-empty

Conversation

@cbodley
Copy link
Copy Markdown

@cbodley cbodley commented Jan 19, 2023

this test case has been passing, but not in the way in we thought

the use of " " here was actually causing 403 SignatureDoesNotMatch; apparently because java is signing the header value of " ", where boto and radosgw are stripping that whitespace from header values when calculating the signature

on 403 errors, the java client retries this request. because of a separate bug https://tracker.ceph.com/issues/58286 in radosgw's http parser, the retried request failed with 500 Bad Request

500 errors aren't retried, so this is the error code caught by the test case

this test case was copied from test_object_create_bad_md5_empty() in s3-tests, where it instead expects 400 InvalidDigest

this test case has been passing, but not in the way in we thought

the use of " " here was actually causing 403 SignatureDoesNotMatch;
apparently because java is signing the header value of " ", where boto
and radosgw are stripping that whitespace from header values when
calculating the signature

on 403 errors, the java client retries this request. because of a
separate bug https://tracker.ceph.com/issues/58286 in radosgw's http
parser, the retried request failed with 500 Bad Request

500 errors aren't retried, so this is the error code caught by the test
case

this test case was copied from test_object_create_bad_md5_empty() in
s3-tests, where it instead expects 400 InvalidDigest

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@alimaredia alimaredia merged commit 81319fe into ceph:master Jan 20, 2023
@cbodley
Copy link
Copy Markdown
Author

cbodley commented Jan 23, 2023

the fix merged in ceph/ceph#49642, so i've cherry-picked this to ceph-master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants