Hi There,
I just came across a problem with feign clients JaxbDecoder. While trying to decode it checks first the response status and if it's 404 then it returns a empty value of target type. This should be also the case for status code 204, since it indicates by design a response with no body.
The current implementation missed the case and cause a SaxParseException
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.]] with root cause
org.xml.sax.SAXParseException: Premature end of file.
Thanks.
Hi There,
I just came across a problem with feign clients JaxbDecoder. While trying to decode it checks first the response status and if it's 404 then it returns a empty value of target type. This should be also the case for status code 204, since it indicates by design a response with no body.
The current implementation missed the case and cause a SaxParseException
Thanks.