Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100-continue handled incorrectly #3124

Closed
dbrumley opened this issue Feb 22, 2024 · 2 comments
Closed

100-continue handled incorrectly #3124

dbrumley opened this issue Feb 22, 2024 · 2 comments
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.

Comments

@dbrumley
Copy link

Describe the bug

From RFC: https://tools.ietf.org/html/rfc7231#section-5.1.1
Requirement for clients:

  • A client MUST NOT generate a 100-continue expectation in a request that does not include a message body.

The current code always returns true, even with an empty message body.

Expected Behavior

Change to self._expect_header_set = headers.get('Content-Length') != '0'

Current Behavior

botocore will incorrectly generate a 100-continuation.

Reproduction Steps

Had this bug with minio. I don't have a repro local, but did cite the RFC.

Possible Solution

I'll submit a PR. It's a simple change.

Additional Information/Context

No response

SDK version used

develop

Environment details (OS name and version, etc.)

macos, python 3.9

@dbrumley dbrumley added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Feb 22, 2024
@SamRemis
Copy link
Contributor

Thank you for bringing this to our attention

We have had this issue reported a number of times; one of the boto maintainers gave an in depth explanation of the complexity of the issue here. We currently have an open PR for an experimental opt in header to solve this issue.

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants