Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing NoContentException when InputStream is empty #4275

Merged
merged 5 commits into from
Oct 2, 2019

Commits on Sep 30, 2019

  1. Throwing NoContentException when InputStream is empty

    Since JAX-RS 2.1 an MBR must react upon an empty stream either with an
    empty instance or with NoContentException, but Jersey's JSON-B MBR does
    neither - it simply throws ProcessingException:
    
    "In case the entity input stream is empty, the reader is expected to either return a
    Java representation of a zero-length entity or throw a javax.ws.rs.core.NoContentException
    in case no zero-length entity representation is defined for the supported Java type."
    
    Signed-off-by: Markus KARG <[email protected]>
    mkarg committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    cb3b57d View commit details
    Browse the repository at this point in the history
  2. Unit Test for JsonBindingProvider

    Signed-off-by: Markus KARG <[email protected]>
    mkarg committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    1b9ce31 View commit details
    Browse the repository at this point in the history
  3. Replaced text literals by localization messages

    Signed-off-by: Markus KARG <[email protected]>
    mkarg committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    bccd900 View commit details
    Browse the repository at this point in the history
  4. Test with MultiValueHashMap

    Signed-off-by: Maxim Nesen <[email protected]>
    senivam authored and mkarg committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    e0fa5ca View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2019

  1. use EntityInputStream to check if stream is empty

    Signed-off-by: Maxim Nesen <[email protected]>
    senivam authored and mkarg committed Oct 1, 2019
    Configuration menu
    Copy the full SHA
    1ef5ec1 View commit details
    Browse the repository at this point in the history