JDK-6569205 : webstart's update tag is not working
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u1
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2007-06-13
  • Updated: 2010-09-17
  • Resolved: 2008-06-19
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 6 JDK 7
6u10 b24Fixed 7Fixed
Description
OPERATING SYSTEM(S):
Linux IA32(Red Hat Enterprise Linux AS release 4)

FULL JDK VERSION(S):
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode)

DESCRIPTION:

When update tag of jnlp file is present and if we launch the application from dekstop short cut, it is faling to download the updated application (jar file). Look at "STEPS TO REPRODUCE" to get clear idea.

STEPS TO REPRODUCE

Testcase can be downloaded from here: ftp://ftp.emea.ibm.com/fromibm/other/ibm-20070613.zip

1.Modify the jnlp file to point to WebstartApp.jar, and launch the application from javaws as follows.
	>>javaws WebstartApp.jnlp
2.It will ask for "Dekstop icon" creation. Select this option to create "Desktop icon".
3.Now close the application.
4.Double click "Desktop icon" in order to launch the application again.
5.Click on "Cancel" when it ask for "A Optional update is available. Do you want to continue?"
6.It will launches the application.
7.Now modify the WebstartApp.jnlp application from policy="prompt-update" to "prompt-run".
8.Again, double click "Desktop icon" in order to launch the application again.
Observed result: It will fails to download the updated information.
Expected result: It should download the updated application from the source and launch the application.

Comments
EVALUATION tried testcase from customer, which exposed another problem in the "prompt-update" and "prompt-run" update dialog. The testcase uses file url in the jnlp file, and java web start always show the update dialog whenever it launches the jnlp application, even if nothing is updated (jar or jnlp) at all. attached testcase to the bugreport
12-07-2007

EVALUATION with 6u2, the only problem I see is after updating the update policy from prompt-update to prompt-run; and I launch the application again, when I get the mandatory update dialog, and if I press cancel, I will leave a incorreect desktop shortcut behind. If I press update, everything works as expected. we should update the desktop shortcut even if the user press "cancel" on the mandatory update dialog also.
11-07-2007

WORK AROUND None
13-06-2007