Giter Club home page Giter Club logo

Comments (7)

cowtowncoder avatar cowtowncoder commented on June 14, 2024

(comment copied from the original bug)

Looks like the old behavior was specified in one of the drafts of the specification (and this was reported in old issue 17). Does seem to have changed in the published spec.

from jackson-jaxrs-providers.

cowtowncoder avatar cowtowncoder commented on June 14, 2024

Maybe introducing a DeserializationFeature.FAIL_ON_EMPTY_SOURCE (default false) would be an option?

from jackson-jaxrs-providers.

marceloverdijk avatar marceloverdijk commented on June 14, 2024

+1 (subscribe)

from jackson-jaxrs-providers.

cowtowncoder avatar cowtowncoder commented on June 14, 2024

Hmmh. One nasty problem with NoContentException: it is only defined in JAX-RS 2.0. So I don't think it can actually be used as we still support 1.x version for various reasons.

So what would be suitable alternative? I assume JAX-RS 1.1 should have some suggestion here.

from jackson-jaxrs-providers.

cowtowncoder avatar cowtowncoder commented on June 14, 2024

One idea... maybe I can just dynamically locate the exception class if it's there.

from jackson-jaxrs-providers.

marceloverdijk avatar marceloverdijk commented on June 14, 2024

Yes sounds reasonable.

M

Sent from my iPhone 5s

On 06 Apr 2014, at 06:53, Tatu Saloranta [email protected] wrote:

One idea... maybe I can just dynamically locate the exception class if it's there.


Reply to this email directly or view it on GitHub.

from jackson-jaxrs-providers.

cowtowncoder avatar cowtowncoder commented on June 14, 2024

Ok: Added JaxRSFeature.ALLOW_EMPTY_INPUT, which defaults to 'true' for backwards compatibility reasons. When disabled, error will be thrown, which should be properly translated: with JAX-RS 2.x will dynamically locate and use NoContentException; with 1.x just throws IOException with same error message.

from jackson-jaxrs-providers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.