JDK-8144348 : Desktop shortcut is not updated after JNLP is changed in deployment cache
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u66,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2015-12-01
  • Updated: 2017-10-23
  • Resolved: 2016-05-29
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.
JDK 8 JDK 9
8u102Fixed 9 b124Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
JDK 9 b109, JDK 8u92 b14, JDK 8u66 b17

ADDITIONAL OS VERSION INFORMATION :
MS Windows 7 OS

A DESCRIPTION OF THE PROBLEM :
The desktop shortcut for Java Web Start application previously created by Java Web Start according to requirements in the application's JNLP file is not updated and refers to nonexistent JNLP file in deployment cache, after the JNLP file contents is changed on the server and the application is run the second time through the browser. As a result the application cannot be run using the desktop shortcut.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Upload JAR, JNLP files of the attached test case "ShortcutIsNotUpdatedOnJNLPChange.zip" to the same directory on an accessible web server.
2. Uninstall all JREs from the host.
3. Install JRE 9 or JRE 8 to be tested.
4. Edit JNLP file of the test case uploaded to the web server in step #1 by setting the appropriate URL value, which is URL of the directory with JAR, JNLP files of the test case on the web server, to "codebase" attribute of "jnlp" element. Save the changes in the file.
5. Open Internet Explorer (IE) browser and load JNLP file of the test case uploaded to the web server. The test Java Web Start application should run, the shortcut "ShortcutIsNotUpdatedOnJNLPChange.lnk" should be created on the desktop. Exit the test application.
6. Edit JNLP file of the test case on the web server by changing the element

  "<property name="jnlp.testSessionID" value="id10"/>"

for

  "<property name="jnlp.testSessionID" value="id11"/>"

Save the changes in the file.

7. Load JNLP file of the test case in IE browser again. The test Java Web Start application should run again. Exit the test application.
8. Double click on the desktop shortcut "ShortcutIsNotUpdatedOnJNLPChange.lnk". The bug is reproduced, if the test Java Web Start application cannot be run successfully after the double click on the shortcut.
Comments
The bug was reproduced using the created test case on MS Windows 7 OS with JRE 9 b109, JRE 8u92 b14, JRE 8u66 b17. It was defined that the bug was caused by the fix for the bug JDK-8023094. It was practically proven that reversion of the fix for JDK-8023094 from the latest version of the source code in "jdk9/client" repository allows to eliminate the bug in JDK 9.
26-05-2016

The minimal test case was attached to the bug record as the file "ShortcutIsNotUpdatedOnJNLPChange.zip".
26-05-2016