JDK-6786213 : Regression : ico files specified for shortcuts in jnlp files are not getting downloaded in 6u12b02
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u12
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2008-12-17
  • Updated: 2011-02-16
  • Resolved: 2009-03-05
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
6u12Fixed 7Fixed
Description
In the jnlp file if the shortcut icon is specified as an ico file ,the file is not downloaded in the cacheviewer and the shortcut is created with the default java image.Works fine if the image type is png.

Build:6u12 b02 Promoted
OS : Windows

1.Install 6u12b01 promoted build
2.Launch http://nicole1.sfbay.sun.com:8080/JavawsMustangIntegTest/icons/test_ico_shortcut.jnlp
3.Click Ok on Desktop Integration Dialog to create shortcuts.
4.Application will be launched.
5.Launch javaws -viewer and see Resources Tab: 3 files are downloaded-IconApp.jar,test_ico_shortcut.jnlp.BLACK.ico
6.shortcuts created will show the image icon(BLACK.ico) 

Repeat the same steps with  6u12b02 promoted build

In Step 5, resources tab in cacheviewer is showing only 2 files .BLACK.ico is not downloaded.
The shortcuts created are using the default java icon.
The same is reproducible with 6u12 b03 PIT

Comments
EVALUATION this is caused by fix to 6773815 in DownloadEngine.java: boolean isJnlp = response.getContentType().equals(JNLP_MIME_TYPE); getCOntentType may be null, throwing NPE. change to: boolean isJnlp = JNLP_MIME_TYPE.equals(response.getContentType());
11-01-2009