fix: disable boto3 checksum calculation for Tencent COS compatibility (#15927)#15930
fix: disable boto3 checksum calculation for Tencent COS compatibility (#15927)#15930zaviermeekz-cpu wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated ChangesTencent COS Upload Compatibility
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15930 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
After upgrading to v0.25.6, uploading PPT/PPTX files (and any file >8MB) fails with
MissingContentLengthwhen using Tencent Cloud COS (S3‑compatible). The cause is the new default checksum behavior in boto3 >=1.36.0, which is not fully supported by COS.This PR explicitly sets:
request_checksum_calculation = 'WHEN_REQUIRED'response_checksum_validation = 'WHEN_REQUIRED'These options restore compatibility with Tencent COS without affecting other S3 endpoints.
Type of change
How has this been tested?
Manually tested uploading a PPT file >8MB to Tencent COS – the upload succeeds. No regression observed with AWS S3.
Related Issue
Closes #15927