JDK-7053087 : Cannot unistall some apps from add/remove programs on windows
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7-client
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-06-09
  • Updated: 2011-09-22
  • Resolved: 2011-08-17
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u2 b03Fixed 8Resolved
Description
Now That applications that contain no href can be "installed", a problem occurs when trying to uninstall them from add/remove programs dialog on windows.
The target of the uninstall arg is set up as the return from ld.getCononicalHome().
For applications with an href, this is the URL to the jnlp file on the web.
for applications w/o an href, that is not true, and this string (the url to the main jar + "jnlp"), though used as the cononical home, this is not a valid url to be used in 
javaws -uninstall <url>

Instead we have to either point to the cached file, or handle this in Main when doing uninstall.

Comments
EVALUATION we cannot point to the cached jnlp file - because if run again, it may get updated, this will also then be a stale refferance. Fix is to recognize ".jarjnlp" extension in Main and/orCacheUtil as cononical href, and to use that to find the cached entity to remove.
2011-06-15