Re: jdk1.2beta3/4 changes in codeBase interpretation for permissions

Ralph G. Puga (puga@tis.com)
Tue, 11 Aug 1998 14:22:46 -0400

Date: Tue, 11 Aug 1998 14:22:46 -0400
From: "Ralph G. Puga" <puga@tis.com>
To: schemers@Eng
Subject: Re: jdk1.2beta3/4 changes in codeBase interpretation for permissions

Roland,

Thank you for the timely response on this issue. We have been struggling with it
for several days and there did not seem to be a new work around for our situation.

--Ralph P.

schemers@Eng.Sun.COM wrote:

> Robert Watson writes:
> > This email is with regards to a change moving from jdk1.2beta3 to jdk1.2beta4.
> > Under 1.2beta3, we were able to specify permissions to apply to locally loaded
> > code by using the "file:/" codebase in the Java policy file. Under
> > jdk1.2beta4, however, this no longer appears to work. Here is some source
> > code and some sample policy files:
>
> This should be documented in the policy docs. Instead of:
>
> grant codeBase "file:/" {
>
> You need to use:
>
> grant codeBase "file:/-" {
>
> This is the same syntax the FilePermission uses. We had a number of
> requests to make this change, in order to make it explict.
>
> roland
>

--
Ralph G. Puga                            puga@tis.com
TIS Labs/Network Associates Inc.         Washington (301) 854-5323
3060 Washington Road              (Voice) Baltimore (410) 442-1673 (x323)
Glenwood, MD 21738                       FAX (301) 854-5363