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

Resteasy-Netty4 Exception when expecting 100-Continue

    XMLWordPrintable

    Details

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                rsertelon Romain Sertelon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: