Skip to content

handle PUT with chunked transfer encoding - #13

Closed
mkogan1 wants to merge 1 commit into
ceph:masterfrom
mkogan1:wip-chunked-trans-enc
Closed

mkogan1 wants to merge 1 commit into
ceph:masterfrom
mkogan1:wip-chunked-trans-enc

Conversation

@mkogan1

@mkogan1 mkogan1 commented Mar 20, 2023

Copy link
Copy Markdown

No description provided.

@mkogan1
mkogan1 requested a review from cbodley March 20, 2023 11:07
@mkogan1

mkogan1 commented Mar 20, 2023

Copy link
Copy Markdown
Author

@cbodley is there a way to specify a specific java_s3tests branch like with s3test in s3tests-branch.yaml ?

}
svc.putObject(new PutObjectRequest(bucket_name, key, is, metadata));
// following Ceph PR#50235 -- handle old clients with transfer-encoding: chunked
// this test PASS condition is 200 (versus 411 previously)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

	@Test(description = "object create w/negative content length, fails")
	public void testObjectCreateBadContentlengthNegative() {

can you tell whether the client is sending that Content-Length header at all? it seems like rgw should return a 400 error there. maybe we're parsing the -1, but misinterpreting it as:

rgw_rest.h:static constexpr int64_t NO_CONTENT_LENGTH = -1;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capturing with wireshark, the client (User-Agent: aws-sdk-java/1.11.549) is not sending a Content-Length header:

image

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thanks. since this test isn't even testing what it's supposed to, maybe we should remove it? or at least rename it to something like testObjectCreateChunked?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, I'm in favor of removing this java_s3test and replacing it with s3test: ceph/s3-tests#501

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good

mkogan1 added a commit to mkogan1/java_s3tests that referenced this pull request Mar 20, 2023
following ceph PR ceph/ceph#50235
it was found that the test 'object create w/negative content length, fails'
test falsely fails on object PUT with chunked transfer encoding
and does not attempts to create an object with a negative content length
for details referring to discussion on: ceph#13

Signed-off-by: Mark Kogan <[email protected]>
@mkogan1

mkogan1 commented Mar 20, 2023

Copy link
Copy Markdown
Author

closing in favor of #14

@mkogan1 mkogan1 closed this Mar 20, 2023
cbodley pushed a commit that referenced this pull request Mar 20, 2023
following ceph PR ceph/ceph#50235
it was found that the test 'object create w/negative content length, fails'
test falsely fails on object PUT with chunked transfer encoding
and does not attempts to create an object with a negative content length
for details referring to discussion on: #13

Signed-off-by: Mark Kogan <[email protected]>
(cherry picked from commit d625bfa)
cbodley pushed a commit that referenced this pull request Mar 20, 2023
following ceph PR ceph/ceph#50235
it was found that the test 'object create w/negative content length, fails'
test falsely fails on object PUT with chunked transfer encoding
and does not attempts to create an object with a negative content length
for details referring to discussion on: #13

Signed-off-by: Mark Kogan <[email protected]>
(cherry picked from commit d625bfa)
cbodley pushed a commit that referenced this pull request Aug 27, 2024
following ceph PR ceph/ceph#50235
it was found that the test 'object create w/negative content length, fails'
test falsely fails on object PUT with chunked transfer encoding
and does not attempts to create an object with a negative content length
for details referring to discussion on: #13

Signed-off-by: Mark Kogan <[email protected]>
(cherry picked from commit d625bfa)
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