adobe / S3Mock

A simple mock implementation of the AWS S3 API startable as Docker image, TestContainer, JUnit 4 rule, JUnit Jupiter extension or TestNG listener
Apache License 2.0
846 stars 181 forks source link

Another Content-Type issue with Alpakka #210

Closed StefansM closed 4 years ago

StefansM commented 4 years ago

Hi, I'm trying to do exactly the same as @sfali in #35. The problem in #35 was addressed in #198 (release 2.1.18), but I'm still seeing a very similar error from Alpakka:

Unsupported Content-Type, supported: application/xml; charset=UTF-8

After a bit of investigation, I discovered that the completeMultipartUpload method is still returning a Content-Type of application/x-www-form-urlencoded, which causes Alpakka to choke.

Is this the expected behaviour? I couldn't see a specified Content-Type in the S3 docs, but Alpakka is definitely expecting application/xml.

Regards, Stefans

agudian commented 4 years ago

@ChaithanyaGK provided a fix, which has been released with version 2.1.19 . @StefansM could you please verify if that fixes this issue?

StefansM commented 4 years ago

Yes, that's fixed the issue! Thanks @ChaithanyaGK and @agudian :)