Open operutka opened 5 years ago
Any news here?
Maybe related https://github.com/spulec/moto/pull/2866
So it looks like the moto (therefore localstack) output is wrong in this case - there should be no body XML. So it's not really rusoto at fault here.
However, there is maybe a separate opportunity to skip XML deserialisation entirely (don't even generate the code) when no XML response is expected. That could mitigate then mitigate the problem in this ticket as a side-effect.
I the PR I linked above makes the resulting moto XML response 'better', but doesn't remove it, so a follow-up moto change is still required.
Anyone who was having this issue see an improvement since #1728 was merged? (Not yet released.)
The code defined here does not skip inner XML elements after matching an element start. This could be a problem in some cases.
For example, I'm using rusoto against localstack to perform an S3 object put. Localstack responds with the following document:
The parser expects the end element immediately after the start element. Which is clearly not the case here.
It should be modified from:
into something like: