JDK-7038810 : Regression: JNLP applet with file protocol failed to download
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-04-22
  • Updated: 2011-06-20
  • Resolved: 2011-05-25
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 6 JDK 7
6u29Fixed 7 b140Fixed
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