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

How to disable JaxRSFeature.READ_FULL_STREAM? #5510

Open
hkawa608 opened this issue Jan 9, 2024 · 2 comments
Open

How to disable JaxRSFeature.READ_FULL_STREAM? #5510

hkawa608 opened this issue Jan 9, 2024 · 2 comments

Comments

@hkawa608
Copy link

hkawa608 commented Jan 9, 2024

Ref to e79aa53#diff-2ef29e24080600307e208ebcf3399be243501ea767e94224d4923f1f95828eaeR489-R491

In Jesey 2.41, JaxRSFeature.READ_FULL_STREAM is set to true by default. Due to this change, we have an interoperability problem that we cannot fix or avoid. So we want to disable this feature by default.
How can we disable this feature?
I googled a lot, but I cannot find a solution...
We don't register any sub ProviderBase classes manually to ResourceConfig.

Thank you.

@hkawa608 hkawa608 changed the title How to disable JaxRSFeature.READ_FULL_STREAM. How to disable JaxRSFeature.READ_FULL_STREAM? Jan 10, 2024
@jansupol
Copy link
Contributor

Please understand that JaxRSFeature class is Jackson class, which Jersey merely repackages.
The proper way of configuring Jackson should be on the Jackson documentation page.

However...
The Jackson providers do contain enable() and disable() methods that are used to set the properties in JaxRSFeature.
So you should be able for instance to register the instance of Jackson providers (JacksonJaxbJsonProvider, JacksonJsonProvider) that have the disable() method set in Jersey.

@rawleyfowler
Copy link

rawleyfowler commented Jan 23, 2024

@hkawa608

Have you tried:

.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.CHUNKED)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants