Git Product home page Git Product logo

Comments (4)

afranken avatar afranken commented on June 23, 2024

@toppk S3Mock does indeed not always set the namespace in responses.
Not sure if S3 itself always does this either.

Do you need the namespace for anything? All S3 SDKs work without it...

from s3mock.

toppk avatar toppk commented on June 23, 2024

it's been a while that I understand xml norms, but this tiny python library I'm using requires it. (aiohttp-s3-client), which doesn't use a common s3 sdk.

I'm also a bit surprised that s3mock doesn't even send the <?xml> header. I've tested minio/aws and they both send the namespace & xml header. That being said, I'll look at this little library i'm using and see if it can be changed there.

from s3mock.

afranken avatar afranken commented on June 23, 2024

S3Mock is implemented using the Spring Framework, which heavily favors the Jackson library.
Historically, Jackson is good for JSON and works OK for XML.
For example, namespace declarations on the root element only (resulting in XML namespace defaulting) do not work:
FasterXML/jackson-dataformat-xml#355

I'll look into the suggested workarounds.
Looks like adding the xml prolog just needs some configuration for Jackson's XmlMapper...

from s3mock.

afranken avatar afranken commented on June 23, 2024

@toppk I released 3.6.0 yesterday which adds the XML prolog and namespace declarations to all responses. :)

from s3mock.

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.