United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6880411 Default system cache is wrong location, and system apps and resources cannot be deleted
JDK-6880411 : Default system cache is wrong location, and system apps and resources cannot be deleted

Details
Type:
Bug
Submit Date:
2009-09-09
Status:
Closed
Updated Date:
2010-12-03
Project Name:
JDK
Resolved Date:
2009-11-26
Component:
deploy
OS:
windows_7
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u18
Fixed Versions:
6u18 (b03)

Related Reports
Backport:

Sub Tasks

Description
RFE: 6862781, added a default system cache location on windows platforms.
On windows 7 the mechanism to select this default is broken, and we just use c:/Sun/Java/Deployment/cache as the location of the system cache.

At a minimum, if no suitable directory can be found to put the cache in, no default system cache should be configured on windows 7
Bug in implementation of default system cache is causing it to be in the wrong location in all cases.  On XP and Vista, this is not fatal, system cache is created and everyone else can read it and write it.
On windows 7 - this is worse, because this wrong location is not writeable by other users. (and it is installed from Java Installer which has elevated its priviliges and ecome a differant user)

Also - Cache Viewer should be able to remove the system cache entries, if the user has write permission to the cache.

                                    

Comments
EVALUATION

The bug is in WinConfig.getPlatformAllUserHome()
allUser = (allUser.endsWith(File.separator) ? "" : File.separator);
instead of:
allUser += (allUser.endsWith(File.separator) ? "" : File.separator);
                                     
2009-09-10



Hardware and Software, Engineered to Work Together