United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6666932 need doPrivileged in CacheEntry.updateExpirationInIndexFile
JDK-6666932 : need doPrivileged in CacheEntry.updateExpirationInIndexFile

Details
Type:
Bug
Submit Date:
2008-02-22
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-05-15
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b21)

Related Reports
Backport:

Sub Tasks

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
                                     
2008-02-22



Hardware and Software, Engineered to Work Together