JDK-5062648 : Wrong initialization order in Config.initialize()
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-06-14
  • Updated: 2012-10-09
  • Resolved: 2004-09-01
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.
Other JDK 6
5.0u1 01Fixed 6Fixed
Description
in com.sun.deploy.config.Config.java, the initialize(0 method first calls  setPolicyFiles(), then next sets all the deployment properties as System properties.
If this were the other way around, those properties could be used in the policy files read by the setPolicyFiles(), such as:

1.) to grant all-permissions to everything in the system cache:
    grant codeBase "file:${deployment.system.cachedir}/- {
        permission java.security.AllPermission;
    };
2.) to grand file permission to all webstart apps downloaded from web-east.east:
    grant codeBase "file:${deployment.user.cachedur}/javaws/http/Dweb-east.east/P80/-" {
      permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete";
    };

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.5.0_01 mustang FIXED IN: 1.5.0_01 mustang INTEGRATED IN: 1.5.0_01 mustang
28-09-2004

EVALUATION we should fix in mustang or sooner.
28-09-2004

SUGGESTED FIX http://web-east.east/www/webrevs/andy/1.6.0/5062648/
28-09-2004