United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6690612 JNLP resources fail to download if cache is disabledT
JDK-6690612 : JNLP resources fail to download if cache is disabledT

Details
Type:
Bug
Submit Date:
2008-04-18
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-17
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b23)

Related Reports

Sub Tasks

Description
Disabled cache is broken for any JNLP resource.

                                    

Comments
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).
                                     
2008-04-18
EVALUATION

See fix.
                                     
2008-04-18



Hardware and Software, Engineered to Work Together