-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ContentSourceTransformer.read()
may call release()
more than once
#12855
Labels
Bug
For general bugs on Jetty side
Comments
See failures (search for and |
@joakime WDYT? |
Yeah, seems like a bug in the release behavior. |
lorban
added a commit
that referenced
this issue
Mar 5, 2025
… called and make sure release() is only called once Signed-off-by: Ludovic Orban <[email protected]>
lorban
added a commit
that referenced
this issue
Mar 5, 2025
Signed-off-by: Ludovic Orban <[email protected]>
lorban
added a commit
that referenced
this issue
Mar 6, 2025
Signed-off-by: Ludovic Orban <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty version(s)
12.1.x
Description
After
ContentSourceTransformer.fail(x, true)
is called, each call toContentSourceTransformer.read()
callsContentSourceTransformer.release()
.If the implementation does not implement
release()
in an idempotent way,ContentSourceTransformer.read()
may throw or misbehave.How to reproduce?
Here is a test to be added to
GzipDecoderSourceTest
that illustrates the bug forGzipDecoderSource
:which fails with:
The text was updated successfully, but these errors were encountered: