JDK-8036620 : JAR file is downloaded on DownloadService.removeResource, if it is not in Deployment Cache
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2014-03-04
  • Updated: 2014-10-15
  • Resolved: 2014-04-14
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.
JDK 7 JDK 8 JDK 9
7u71Fixed 8u20Fixed 9 b12Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
JDK 9, JDK 8, JDK 7

ADDITIONAL OS VERSION INFORMATION :
MS Windows OS

A DESCRIPTION OF THE PROBLEM :
If the applet deployed by means of JNLP file tries to remove a certain JAR file from Deployment Cache by calling "javax.jnlp.DownloadService.removeResource(URL ref, String version)" method, and if the JAR file is not in the cache, the file is unnecessarily downloaded first and then is removed from the cache.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Upload HTML, JNLP and 2 JAR files from the attached archive file "JarIsDownloadedOnRemoveResource.zip" with the test case into a directory on a web server.
2. Install the testable JDK 9, JDK 8 or JDK 7.
3. Remove "JarToRemoveFromCache.jar" file from Java Cache, if it is in the cache, by using Java Cache Viewer application from Java Control Panel.
4. Go to "Java Control Panel -> Advanced" and:
- Switch on "Debugging -> Enable tracing"
- Choose "Java console -> Show console"
5. Open a web browser and load HTML page with the test case from the step #1.
6. The bug is reproduced, if Java Console contains a record starting with "network: Downloaded" string for "JarToRemoveFromCache.jar" file.
Comments
Analysis of the bug in JDK 7 source code showed that this bug is caused by the fix for the bug JDK-7163312, which was integrated into JDK 7u6 b11. The bug is not reproducible with JDK 7u6 b10.
2014-04-04

The test case "JarIsDownloadedOnRemoveResource.zip" was attached to the bug record. The bug was reproduced by means of the attached test case on JDK 9 b07, JDK 8 b132, JDK 7u51 b13.
2014-04-03