United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7038810 Regression: JNLP applet with file protocol failed to download
JDK-7038810 : Regression: JNLP applet with file protocol failed to download

Details
Type:
Bug
Submit Date:
2011-04-22
Status:
Closed
Updated Date:
2011-06-20
Project Name:
JDK
Resolved Date:
2011-05-25
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
java.lang.NullPointerException
at com.sun.deploy.cache.Cache.hashCode(Unknown Source)
at com.sun.deploy.cache.Cache.getKey(Unknown Source)
at com.sun.deploy.cache.Cache$18.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.cache.Cache.generateCacheFileName(Unknown Source)
at com.sun.deploy.cache.Cache.createNewCacheEntry(Unknown Source)
at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)

                                    

Comments
EVALUATION

public static CacheEntry downloadResourceToCache(URL href, String downloadVersion,
HttpResponse response, HttpDownloadListener hdl,
DownloadDelegate dd, boolean removeCurrentCE, URL requestURL,
CacheEntry currentCE, boolean applyJarDiff, int contentType)
throws IOException, CanceledDownloadException {

URL finalURL = HttpUtils.getFinalRedirectedURL(response);
boolean redirected = ! URLUtil.sameURLs(finalURL, requestURL);
URL finalHref = redirected ? finalURL : href;
URL finalRequestURL = redirected ? finalURL : requestURL;

Needs to check null value for finalURL.
                                     
2011-04-22



Hardware and Software, Engineered to Work Together