db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1448) derbynet/sysinfo.java fails with 10.1 client and 10.2 server
Date Mon, 26 Jun 2006 14:36:30 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1448?page=comments#action_12417819 ] 

Bryan Pendleton commented on DERBY-1448:

The permission requirement is not new; this part of sysinfo
has required this permission for quite some time.

What has changed is the message that appears when you don't
have this permission. In 10.1 and earlier releases, if you don't
have the permission, sysinfo silently produces no output regarding
your class path.

In 10.2, sysinfo tells you that it is skipping your classpath because
it cannot read it.

This is the 10.1 code:

 try {
             classpath = System.getProperty("java.class.path");
 catch (SecurityException se) {
            classpath = null;

This is the 10.2 code:

try {
          classpath = System.getProperty("java.class.path");
 catch (SecurityException se) {
              Main.getTextMessage ("SIF01.U", se.getMessage()));
        classpath = null;

It was DERBY-668 that changed sysinfo to print this message.

It was DERBY-1152 that changed derby_tests.policy to make all
the various configurations have the permission to read java.class.path.

However, derby_tests.policy has had the permission to read
java.class.path when running from the classes directory for
a long time; it was DERBY-615 that was the first change to
grant the ability to read java.class.path property.

Hope this helps; please tell me what we need to do to make this clearer.

> derbynet/sysinfo.java fails with 10.1 client and 10.2 server
> ------------------------------------------------------------
>          Key: DERBY-1448
>          URL: http://issues.apache.org/jira/browse/DERBY-1448
>      Project: Derby
>         Type: Test

>   Components: Test
>  Environment: derbyclient.jar and derbyTesting.jar from 10.1
> all other jars from 10.2
>     Reporter: Deepa Remesh
>     Priority: Minor

> The test fails with following diff:
> > Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
> I think the following permission has to be granted to derby.jar and derbynet.jar in 10.1.
This is present in 10.2 test policy file:
> permission java.util.PropertyPermission "java.class.path", "read";//sysinfo

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message