Skip to content

SAXParseException: Premature end of file when Status Code is 204 #791

Description

@selimok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected or incorrect behavior

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions