Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143294

cookie handler can't get JSESSIONID on linux

    XMLWordPrintable

Details

    • b100

    Backports

      Description

        Testing env: ubuntu 14, jre9 b92

        Crystal created a test to cover JDK-8131978. In the test, it sends a request to servlet to set a custom cookie, then use default cookie handler to read all the cookies, then check if the custom cookie and JSESSIONID can be got.

        On windows: both the custom cookie and JSESSIONID can be got. But on linux only the custom cookie can be got. See trace files below.

        Windows: http://aurora-ds3.us.oracle.com:9502/runs/01138/1138879.ManualSubmit/1138879.ManualSubmit-1/html/javaws/JawsCookies/JawsCookiesTest_testCookieHandlerDefaultApplication.trace, you can see >>>> CookieHandler header value: JSESSIONID=1C9E1384D306AF9A6EB993B86BB8F6DC; MyTest=5
        Linux: http://aurora-ds3.us.oracle.com:9502/runs/01163/1163937.ManualSubmit/1163937.ManualSubmit-1/html/javaws/JawsCookies/JawsCookiesTest_testCookieHandlerDefaultApplication.trace, you can only see >>>> CookieHandler header value: MyTest=5

        Steps to reproduce:
        - Download http://rehte.cn.oracle.com:8080/wshost/reproduce/8143294/apache-tomcat-6.0.26.zip, and unzip it
        - Start tomcat
        - Add http://127.0.0.1:8080 in ESL
        - Launch http://127.0.0.1:8080/JawsCookies/jnlp/testCookieHandlerDefaultApplication.jnlp, check the trace file, if there is only CookieHandler header value: MyTest=5, no JSESSIONID in the same line, bug is reproduced.

        Source code location: http://rehte.cn.oracle.com:8080/wshost/deploy_dev_webrev/test/functional/javaws/JawsCookies/src/CookieHandlerDefaultApplet.java

        Attachments

          Issue Links

            Activity

              People

                vdrozdov Victor Drozdov (Inactive)
                qgong Fred Gong (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: