Skip to content

[stable33] fix(s3): Add Content-MD5 header for DeleteObjects to fix AWS SDK v3.339.0+ compatibility#60322

Open
backportbot[bot] wants to merge 2 commits into
stable33from
backport/60195/stable33
Open

[stable33] fix(s3): Add Content-MD5 header for DeleteObjects to fix AWS SDK v3.339.0+ compatibility#60322
backportbot[bot] wants to merge 2 commits into
stable33from
backport/60195/stable33

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 12, 2026

Backport of PR #60195

skjnldsv and others added 2 commits May 12, 2026 09:36
…39.0+ compatibility

AWS SDK PHP v3.339.0+ introduced a breaking change requiring the Content-MD5
header for DeleteObjects operations. This causes 'MissingContentMD5' errors when
using S3-compatible services like MinIO.

Add middleware to automatically calculate and inject the Content-MD5 header on
all DeleteObjects requests. This is applied universally at the S3ConnectionTrait
level, fixing both external storage (AmazonS3) and core ObjectStore (S3) classes.

Fixes: aws/aws-sdk-php#3068
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Co-authored-by: Louis <louis@chmn.me>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@backportbot backportbot Bot requested a review from a team as a code owner May 12, 2026 09:36
@backportbot backportbot Bot requested review from Altahrim, CarlSchwan, artonge, come-nc, leftybournes, salmart-dev and skjnldsv and removed request for a team May 12, 2026 09:36
@backportbot backportbot Bot added this to the Nextcloud 33.0.4 milestone May 12, 2026
@skjnldsv skjnldsv enabled auto-merge May 12, 2026 09:37
@skjnldsv skjnldsv disabled auto-merge May 12, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants