Skip to content

s3: Specifying e_tags in DeleteObjects operation results in MalformedXML error #1311

@Fuuzetsu

Description

@Fuuzetsu

Describe the bug

If I uncomment set_etag below

let Ok(oi) = aws_sdk_s3::types::ObjectIdentifier::builder()
                .key(key)
                // .set_e_tag(object.e_tag)
                .build()
            else {
                continue;
            };

Then using this ObjectIdentifier as part of Delete results in

code: "MalformedXML", message: "The XML you provided was not well-formed or did not validate against our published schema",

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

It should work.

Current Behavior

Malformed XML error

Reproduction Steps

Just make any DeleteObjects with E-Tag being populated. I'm deleting 1000 objects at a time.

See https://github.com/Fuuzetsu/aws-delete-objects-etag-repro

Possible Solution

No response

Additional Information/Context

No response

Version

aws-sdk-s3 = "1.90.0"

Environment details (OS name and version, etc.)

Linux

Logs

even with trace level the request body is not visible so logs aren't very useful

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions