Skip to content

Add logic to skip invalid feature id#3639

Merged
SamRemis merged 13 commits intoboto:developfrom
SamRemis:more-checksums
Mar 10, 2026
Merged

Add logic to skip invalid feature id#3639
SamRemis merged 13 commits intoboto:developfrom
SamRemis:more-checksums

Conversation

@SamRemis
Copy link
Copy Markdown
Contributor

Description of changes:
With a recent PR, we added new get_checksum_header_algorithms function to get a list of headers that start with x-amz-checksum-, so if we have x-amz-checksum-sha512, it would return sha512.

This function is used to set feature ids, and has a false positive for the x-amz-checksum-algorithm header and currently attempts to register a non-existent feature id for a checksum called "algorithm".

To fix this and simplify the logic, this PR separates out the responsibilities of the functions. The old get_checksum_header_algorithms has been renamed to get_checksum_algorithm_headers and returns only the raw headers. The function which registers the feature ids will now filter out the x-amz-checksum-algorithm header and extract the algorithm name from the header name for registration.

Considering these changes are internal only and not public facing, I've decided against including a changelog. Happy to include one in a future revision if requested.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 23, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (b0a4fbe) to head (d833841).
⚠️ Report is 334 commits behind head on develop.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3639      +/-   ##
===========================================
- Coverage    92.71%   92.59%   -0.12%     
===========================================
  Files           68       68              
  Lines        15561    15634      +73     
===========================================
+ Hits         14428    14477      +49     
- Misses        1133     1157      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread botocore/httpchecksum.py Outdated
@SamRemis SamRemis merged commit af28181 into boto:develop Mar 10, 2026
46 checks passed
aws-sdk-python-automation added a commit that referenced this pull request Mar 10, 2026
* release-1.42.65:
  Bumping version to 1.42.65
  Update to latest models
  Add logic to skip invalid checksum feature id (#3639)
hswong3i pushed a commit to alvistack/boto-botocore that referenced this pull request Mar 11, 2026
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.

3 participants