← All tasks
javadropwizard/dropwizard #7275Not a task: already works

Server rejects certain sizes of streamed request bodies

envgap__dropwizard__dropwizard-7275

01 / FAILURE SIGNATURE

As reported upstream

ERROR [2023-06-28 16:49:19,766] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 20dae4a5c6058e23
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
9bbf77f189cc2da9a53d9598e251b5dc1beff396
Manifest
dropwizard-dependencies/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

dropwizard/dropwizard #7275 · read the original issue
DropWizard 4.0.1, Jetty 11.0.15, Java 17



When posting certain body sizes to a Dropwizard server via the Dropwizard configured Jersey client, the server returns a 500 because of an exception thrown inside Jetty:

```

127.0.0.1 - - [28/Jun/2023:16:49:19 +0000] "POST /test HTTP/1.1" 500 110 "-" "gzip-interceptor-bug (RQZNuukVWd)" 1

ERROR [2023-06-28 16:49:19,766] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 20dae4a5c6058e23

! java.io.IOException: Interceptor org.eclipse.jetty.server.handler.gzip.GzipHttpInputInterceptor@1aa1d204 did not consume any of the 8 remaining byte(s) of content

! at org.eclipse.jetty.server.AsyncContentProducer.intercept(AsyncContentProducer.java:449)

! at org.eclipse.jetty.server.AsyncContentProducer.transformRawContent(AsyncContentProducer.java:378)

! at org.eclipse.jetty.server.AsyncContentProducer.nextTransformedContent(AsyncContentProducer.java:368)

! at org.eclipse.jetty.server.AsyncContentProducer.nextContent(AsyncContentProducer.java:250)

! at org.eclipse.jetty.server.BlockingContentProducer.nextContent(BlockingContentProducer.java:103)

! at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:287)

! at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:272)

! at org.glassfish.jersey.message.internal.EntityInputStream.read(EntityInputStream.java:79)

! at java.base/java.io.InputStream.readNBytes(InputStream.java:409)

! at java.base/java.io.InputStream.readAllBytes(InputStream.java:346)

! at foo.TestResource.absorbBytes(TestResource.java:20)

```



There's a reproduction repo here:

https://github.com/Mahoney-bug-examples/gzip-interceptor-bug
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]