Giter VIP home page Giter VIP logo

Comments (6)

aajtodd avatar aajtodd commented on June 27, 2024 1

It's a bug in the SDK. I'm working on a fix.

from aws-sdk-kotlin.

aajtodd avatar aajtodd commented on June 27, 2024

Thanks for the report, I was able to recreate this.

It seems related to the use of xmlFlattened on the model:

                "Versions": {
                    "target": "com.amazonaws.s3#ObjectVersionList",
                    "traits": {
                        "smithy.api#documentation": "<p>Container for version information.</p>",
                        "smithy.api#xmlFlattened": {},
                        "smithy.api#xmlName": "Version"
                    }
                },
                "DeleteMarkers": {
                    "target": "com.amazonaws.s3#DeleteMarkers",
                    "traits": {
                        "smithy.api#documentation": "<p>Container for an object that is a delete marker.</p>",
                        "smithy.api#xmlFlattened": {},
                        "smithy.api#xmlName": "DeleteMarker"
                    }
                },

The response I'm seeing has version and delete marker elements intermixed:

<ListVersionsResult ...>
    <DeleteMarker> ... </DeleteMarker>
    <Version> ... </Version>
    <DeleteMarker> ... </DeleteMarker>
    <Version> ... </Version>
    ....
</ListVersionsResult>

This is of course valid XML but wasn't expected by the XML deserializer for the given trait.

We'll have to investigate how to best rectify this in the short term and in the longer term clarify with Smithy team on whether this is expected service behavior.

from aws-sdk-kotlin.

RodrasSilva avatar RodrasSilva commented on June 27, 2024

Hello @aajtodd. Do you have any updates from the Smithy team? I don't think this is expected service behavior since this is a different behavior from the one present in the Java SDK.

from aws-sdk-kotlin.

github-actions avatar github-actions commented on June 27, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sdk-kotlin.

aajtodd avatar aajtodd commented on June 27, 2024

Fix for this has been merged to main, should be available in a release either today or tomorrow.

from aws-sdk-kotlin.

RodrasSilva avatar RodrasSilva commented on June 27, 2024

Fix for this has been merged to main, should be available in a release either today or tomorrow.

Thank you for your help @aajtodd 🦾

from aws-sdk-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.