United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7046670 jnlp install hints are ignored in some cases.
JDK-7046670 : jnlp install hints are ignored in some cases.

Details
Type:
Bug
Submit Date:
2011-05-20
Status:
Resolved
Updated Date:
2011-12-07
Project Name:
JDK
Resolved Date:
2011-08-17
Component:
deploy
OS:
windows_xp
Sub-Component:
webstart
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u2 (b03)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
With default setting (Install if hinted) an app or applet will still not be "installed" if either:
1.) The jnlp file has no href for the main jnlp file and offline-allowed is not specified.
2.) The platform dosen't support shortcuts.

Tested OS: winxp
Tested JRE: jre7 pit 143 http://rehudson.sfbay.sun.com/hudsonws/deploypit/bundles/
b255-2011-05-18_81 

reproduce steps:
1.) clear cache (javaws -uninstall)
2.) run :
javaws http://rehte.cn.oracle.com:8080/wshost/new_ws/deployment/src/javafx/fxfeaturesTest/fxfeaturesTest/html/DesktopIntegration.jnlp and allow shortcut.
3.) run javaws-clearcache (should not remove anything), if app is deleted, bug is reproduced.

                                    

Comments
EVALUATION

decision to mark app as "installed" is made within the LocalInstallHandler, so as a side effect of not allowing shortcuts unless jnlp file has jnlp href or offline-allowed, an app cannot be "installed" if it has neither an href or the "offline-allowed" tag.

another side effect of determining "installed" status inside the LocalInstallHandler is that on a platform not supporting lih (such as many unix's) an app is never considered "installed".

either or both of these problems can be easily fixed.

We should allow both shortcuts and running from the cache viewer even if app has no href or offline-allowed in it's jnlp file.
                                     
2011-05-20



Hardware and Software, Engineered to Work Together