JDK-6690612 : JNLP resources fail to download if cache is disabledT
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-04-18
  • Updated: 2010-09-08
  • Resolved: 2008-06-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 Availability Release.

To download the current JDK release, click here.
6u10 b23Fixed
Disabled cache is broken for any JNLP resource.

SUGGESTED FIX The widely used DownloadEngine.getResourceCacheEntry(), did not handle the case: !cacheEnabled && doDownload, which it should. It is not recommended to encapsulate all 'fetch resource' calls in the caller with 'isCacheEnabled', since it leads to duplicate and confusing code. In case of !cacheEnabled && doDownload, DownloadEngine.getResourceCacheEntry() has to use a temporary cache entry where the resource is downloaded into and the caller can return the temporary file handle (File instance).