Skip to content

fix: pass only object key to deleteObjects call#58582

Merged
leftybournes merged 1 commit intomasterfrom
leftybournes/fix/files_external_delete_objects
Feb 27, 2026
Merged

fix: pass only object key to deleteObjects call#58582
leftybournes merged 1 commit intomasterfrom
leftybournes/fix/files_external_delete_objects

Conversation

@leftybournes
Copy link
Contributor

Some S3-compatible object storage hosts don't like the ETag being included in the request and return a MalformedXML response. In the AWS API documentation, only the object key is required so just pass that in.

Summary

Follow-up to #56366. Some S3-compatible object storage hosts don't like that the ETag is included in the request and return a MalformedXML response. The AWS S3 API documentation only requires the object key in the deleteObjects request so just pass that in.

Checklist

@leftybournes leftybournes added this to the Nextcloud 34 milestone Feb 26, 2026
@leftybournes leftybournes requested a review from a team as a code owner February 26, 2026 07:42
@leftybournes leftybournes added bug 3. to review Waiting for reviews labels Feb 26, 2026
@leftybournes leftybournes requested review from CarlSchwan, come-nc, salmart-dev and sorbaugh and removed request for a team February 26, 2026 07:42
@leftybournes
Copy link
Contributor Author

/backport to stable33

@leftybournes
Copy link
Contributor Author

/backport to stable32

@leftybournes
Copy link
Contributor Author

/backport to stable31

Copy link
Member

@joshtrichards joshtrichards left a comment

Choose a reason for hiding this comment

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

Makes sense. Zero benefit to Etag here and it's not supported anyway. At best it is a no-op.

Some S3-compatible object storage hosts don't like the ETag being included in
the request and return a MalformedXML response. In the AWS API documentation,
only the object key is required so just pass that in.

Signed-off-by: Kent Delante <kent.delante@proton.me>
@leftybournes leftybournes force-pushed the leftybournes/fix/files_external_delete_objects branch from aac8687 to 8d1cb50 Compare February 27, 2026 02:55
@leftybournes leftybournes merged commit d6eade0 into master Feb 27, 2026
203 of 206 checks passed
@leftybournes leftybournes deleted the leftybournes/fix/files_external_delete_objects branch February 27, 2026 03:28
@backportbot
Copy link

backportbot bot commented Feb 27, 2026

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/58582/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 8d1cb500

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/58582/stable31

Error: Failed to push branch backport/58582/stable31: remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/nextcloud/server.git/'


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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.

3 participants