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

Resteasy-Netty4 Exception when expecting 100-Continue

    XMLWordPrintable

Details

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

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: