United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6786213 Regression : ico files specified for shortcuts in jnlp files are not getting downloaded in 6u12b02
6786213 : Regression : ico files specified for shortcuts in jnlp files are not getting downloaded in 6u12b02

Details
Type:
Bug
Submit Date:
2008-12-17
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-03-05
Component:
deploy
OS:
windows
Sub-Component:
webstart
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u12
Fixed Versions:
6u14

Related Reports
Backport:
Backport:

Sub Tasks

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());
                                     
2009-01-11



Hardware and Software, Engineered to Work Together