You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
s3: Specifying e_tags in DeleteObjects operation results in MalformedXML error #1311
I noticed that the ETag from the list operation came in with double quotes around it. Stripping it didn't help. Sending an ETag that was just foo also didn't help.
You can see in the output that I can delete the object just fine if I don't pass the ETag.
For the DeleteObject, we can see some of the request in the trace logs. Not sure if it's useful but I include that bit below. One can run the reproducer with RUST_LOG=trace and see everything.
Activity
landonxjames commentedon Jun 19, 2025
Does this happen with any E-Tag value? Wondering if somehow an unexpected XML token is showing up in the E-Tag and confusing the parser.
Reproducer for awslabs/aws-sdk-rust#1311
Fuuzetsu commentedon Jun 20, 2025
I made a reproducer here: https://github.com/Fuuzetsu/aws-delete-objects-etag-repro
You can see the output in README.md there. While there, I was wondering if I can delete an object with etag with the
DeleteObjectAPI viaIf-Matchlike described at https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html#API_DeleteObject_RequestSyntax but that doesn't work either. Not sure if that's a separate issue or not.I noticed that the ETag from the list operation came in with double quotes around it. Stripping it didn't help. Sending an ETag that was just
fooalso didn't help.You can see in the output that I can delete the object just fine if I don't pass the ETag.
Let me know if you need more info.
Fuuzetsu commentedon Jun 20, 2025
For the DeleteObject, we can see some of the request in the trace logs. Not sure if it's useful but I include that bit below. One can run the reproducer with RUST_LOG=trace and see everything.