United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6569205 webstart's update tag is not working
JDK-6569205 : webstart's update tag is not working

Details
Type:
Bug
Submit Date:
2007-06-13
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-06-19
Component:
deploy
OS:
linux
Sub-Component:
webstart
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u1
Fixed Versions:
6u10 (b24)

Related Reports
Backport:

Sub Tasks

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
WORK AROUND

None
                                     
2007-06-13
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.
                                     
2007-07-11
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
                                     
2007-07-12



Hardware and Software, Engineered to Work Together