You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by legolas wood <le...@gmail.com> on 2007/02/19 07:42:04 UTC

Does anyone tested policy file usage in derby 10.2.2 ?

Hi
Thank you for reading my post.
Does any one tried and used derby under a security manager a a policy file?
I tried to use it under a security manager and a policy file but my 
policy file never take effect.
indeed derby ignored any policy that i defined.

is there any sample policy file out there? I tries sample policy file 
which is included in Derby reference? and it does not take affect.


Thanks

Re: Does anyone tested policy file usage in derby 10.2.2 ?

Posted by Daniel John Debrunner <dj...@apache.org>.
legolas wood wrote:
> Hi
> Thank you for reading my post.
> Does any one tried and used derby under a security manager a a policy file?

Yes, over 95% of Derby's functional tests run with a security manager.

> I tried to use it under a security manager and a policy file but my 
> policy file never take effect.
> indeed derby ignored any policy that i defined.
> 
> is there any sample policy file out there? I tries sample policy file 
> which is included in Derby reference? and it does not take affect.

How are you setting up the security manager and policy file, and can you 
provide the policy file you are trying?

Also how are you determining that the policy file never takes effect?

Thanks,
Dan.


Re: Does anyone tested policy file usage in derby 10.2.2 ?

Posted by "Jean T. Anderson" <jt...@bristowhill.com>.
legolas wood wrote:
> Hi
> Thank you for reading my post.
> Does any one tried and used derby under a security manager a a policy file?
> I tried to use it under a security manager and a policy file but my
> policy file never take effect.
> indeed derby ignored any policy that i defined.
> 
> is there any sample policy file out there? I tries sample policy file
> which is included in Derby reference? and it does not take affect.

one thing that has tripped me up in the past is I copied the sample
policy file *exactly* :

   grant codeBase "file://f:/derby/lib/derby.jar" {
   ... deleted for brevity ...
   }

There's no "f" drive on any of my systems. :-) So be sure to change that
line to specify the full path on your system.

 -jean



Re: Does anyone tested policy file usage in derby 10.2.2 ?

Posted by Stanley Bradbury <St...@gmail.com>.
legolas wood wrote:
> Hi
> Thank you for reading my post.
> Does any one tried and used derby under a security manager a a policy 
> file?
> I tried to use it under a security manager and a policy file but my 
> policy file never take effect.
> indeed derby ignored any policy that i defined.
>
> is there any sample policy file out there? I tries sample policy file 
> which is included in Derby reference? and it does not take affect.
>
>
> Thanks
>
If the documentation on the subject not address your needs please list 
what is lacking/giving you problems in a JIRA enhancement so we can 
improve the information.

Main topic contents page:
http://db.apache.org/derby/docs/dev/devguide/cdevcbabejdfj.html
Example files
http://db.apache.org/derby/docs/dev/devguide/cdevcsecure871387.html