JDK-6666932 : need doPrivileged in CacheEntry.updateExpirationInIndexFile
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-02-22
  • Updated: 2010-09-17
  • Resolved: 2008-05-15
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 6 JDK 7
6u10 b21Fixed 7Fixed
Description
visit

http://hs.iwon.com/games/pyramid.html

first time the applet will  load.

next time when the applet load from cache, it will fail:

java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\ngthomas\Application Data\Sun\Java\Deployment\cache\6.0\56\69442638-205541ac.idx read)
	at java.security.AccessControlContext.checkPermission(Unknown Source)
	at java.security.AccessController.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkRead(Unknown Source)
	at java.io.RandomAccessFile.<init>(Unknown Source)
	at com.sun.deploy.cache.CacheEntry.updateExpirationInIndexFile(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
	at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at inknet.InkUtil.��(inknet/InkUtil)
	at inknet.InkUtil.getGameCanvasType(inknet/InkUtil)
	at gamehouse.SuperApplet.init(gamehouse/SuperApplet)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Comments
EVALUATION need doPrivileged in CacheEntry.updateExpirationInIndexFile
22-02-2008