JDK-8143294 : cookie handler can't get JSESSIONID on linux
  • Type: Bug
  • Component: deploy
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-19
  • Updated: 2016-04-27
  • Resolved: 2015-12-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u101Fixed 9 b100Fixed
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 in ESL
- Launch, 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

this is maybe not a deploy issue, as probably JSESSIONID was not set on server side. Or this is 9-only problem?

Hi Victor, I've packaged a tomcat.zip for you. And added more information in bug description.

Could you provide the link to workable test?

Affected tests: RULE JawsCookiesTest::testCookieHandlerDefaultApplication any any RULE FXCookiesTest::testCookieHandlerDefaultApplication any any