glassfish
  1. glassfish
  2. GLASSFISH-17857

request.getHeader does not return the trailer on chunked POST requests with trailers

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2_b13
    • Component/s: web_container
    • Labels:
      None

      Description

      When we post a chunked requests with trailers, the request#getHeader does not return the trailer header.

      On need to port the fix of https://issues.apache.org/bugzilla/show_bug.cgi?id=49860 ,
      http://svn.apache.org/viewvc?view=revision&revision=1003461

        Activity

        Hide
        Shing Wai Chan added a comment -

        Change in Grizzly 1.9.x:
        git commit config/src/main/java/com/sun/grizzly/config/dom/Http.java http/src/main/java/com/sun/grizzly/http/Constants.java http/src/main/java/com/sun/grizzly/http/ProcessorTask.java http/src/main/java/com/sun/grizzly/http/SelectorThread.java utils/src/main/java/com/sun/grizzly/tcp/http11/filters/ChunkedInputFilter.java
        [1.9.x e96c71a] fix issue http://java.net/jira/browse/GLASSFISH-17857 ("request.getHeader does not return the trailer on chunked POST requests with trailers")
        5 files changed, 218 insertions, 7 deletions

        git push origin 1.9.x
        Counting objects: 62, done.
        Delta compression using up to 8 threads.
        Compressing objects: 100% (24/24), done.
        Writing objects: 100% (35/35), 4.06 KiB, done.
        Total 35 (delta 14), reused 0 (delta 0)
        To ssh://swchan2@git.java.net/grizzly~git
        f7a798f..68bf225 1.9.x -> 1.9.x

        Add devtests:
        Adding trailerHeader
        Adding trailerHeader/WebTest.java
        Adding trailerHeader/build.properties
        Adding trailerHeader/build.xml
        Adding trailerHeader/descriptor
        Adding trailerHeader/descriptor/web.xml
        Adding trailerHeader/servlet
        Adding trailerHeader/servlet/EchoHeaderServlet.java
        Transmitting file data .....
        Committed revision 51207.

        Show
        Shing Wai Chan added a comment - Change in Grizzly 1.9.x: git commit config/src/main/java/com/sun/grizzly/config/dom/Http.java http/src/main/java/com/sun/grizzly/http/Constants.java http/src/main/java/com/sun/grizzly/http/ProcessorTask.java http/src/main/java/com/sun/grizzly/http/SelectorThread.java utils/src/main/java/com/sun/grizzly/tcp/http11/filters/ChunkedInputFilter.java [1.9.x e96c71a] fix issue http://java.net/jira/browse/GLASSFISH-17857 ("request.getHeader does not return the trailer on chunked POST requests with trailers") 5 files changed, 218 insertions , 7 deletions git push origin 1.9.x Counting objects: 62, done. Delta compression using up to 8 threads. Compressing objects: 100% (24/24), done. Writing objects: 100% (35/35), 4.06 KiB, done. Total 35 (delta 14), reused 0 (delta 0) To ssh://swchan2@git.java.net/grizzly~git f7a798f..68bf225 1.9.x -> 1.9.x Add devtests: Adding trailerHeader Adding trailerHeader/WebTest.java Adding trailerHeader/build.properties Adding trailerHeader/build.xml Adding trailerHeader/descriptor Adding trailerHeader/descriptor/web.xml Adding trailerHeader/servlet Adding trailerHeader/servlet/EchoHeaderServlet.java Transmitting file data ..... Committed revision 51207.
        Hide
        oleksiys added a comment -
        Show
        oleksiys added a comment - Grizzly issue http://java.net/jira/browse/GRIZZLY-1146

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            Shing Wai Chan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: