Comments (7)
(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.
Maybe introducing a DeserializationFeature.FAIL_ON_EMPTY_SOURCE (default false) would be an option?
from jackson-jaxrs-providers.
+1 (subscribe)
from jackson-jaxrs-providers.
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.
One idea... maybe I can just dynamically locate the exception class if it's there.
from jackson-jaxrs-providers.
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.
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)
- Invalid signatures for jackson-jaxrs-base and jackson-jaxrs-json-provider 2.12.2 POM on Maven Central HOT 2
- Module not found: com.fasterxml.jackson.jaxrs.json 2.12.3 issue HOT 6
- Cannot compile class extending JacksonJaxbJsonProvider HOT 2
- Create new alternate `jackson-jakarta-rs-providers` repo for Jakarta (not Javax) RS implementation HOT 2
- Enhance Request : Allow interception during JaxRS serialization and deserialization HOT 1
- com.sun.jersey.api.MessageException: A message body writer for Java class, Error with v2.13.0 HOT 7
- Rename "com.fasterxml.jackson" -> "tools.jackson"
- Missing `MANIFEST.MF` in `jakarta`-classifier artifacts of `JAX-RS providers`, `JAXB annotations` module HOT 8
- Publish 2.13.x version with woodstox:6.4.0 to fix CVEs HOT 4
- Exception class: (Java::JavaLang::NoClassDefFoundError). Exception Message: (com/fasterxml/jackson/jaxrs/json/JacksonJsonProvider) HOT 1
- Is CompletionStage supported? HOT 1
- `ProviderBase` class shows contention on synchronized block using `LRUMap` _writers instance HOT 11
- Reading com.fasterxml.jackson.core based Json from resteasy-jackson-provider 3.9.0 #3566 HOT 5
- Add Ion provider HOT 1
- Convert `ObjectReaderInjector`/`ObjectWriterInjector` to use new (2.16) pluggable `RecyclerPool` instead of hard-coded one HOT 1
- Backport Snakeyaml update to branch 2.12 HOT 25
- Deprecate local `LRUMap`, use `jackson-databind` provided one instead
- Which release is compatible with java17 HOT 1
- How to disable JaxRSFeature.READ_FULL_STREAM. HOT 9
- MavenGate (CVE) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-jaxrs-providers.