Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1544

Resteasy-Netty4 Exception when expecting 100-Continue


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.24.Final, 3.1.4.Final
    • 3.1.0.CR2
    • None
    • None

      Resteasy Netty4 crashes when client sends a "Expect: 100-continue" header. Here's the error:

      java.lang.UnsupportedOperationException: unsupported message type: DefaultFullHttpResponse (expected: ByteBuf, FileRegion)

      I've looked for a fix and think I've got it. The API doc for HttpObjectAggregator (used in NettyJaxrsServer) states that :

          Be aware that you need to have the HttpResponseEncoder or HttpRequestEncoder before the HttpObjectAggregator in the ChannelPipeline.

      I've tried and moved the HttpObjectAggregator as said above, and it worked fine. Once the issue is created, I'll create a PR with the fix.

            rsigal@redhat.com Ronald Sigal
            rsertelon Romain Sertelon (Inactive)
            0 Vote for this issue
            3 Start watching this issue