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-1832) sysinfo test fails with "access denied (java.util.PropertyPermission java.class.path read)" when derbyclient.jar is first in classpath
Date Fri, 08 Sep 2006 14:26:23 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1832?page=comments#action_12433407 ] 
            
Bryan Pendleton commented on DERBY-1832:
----------------------------------------

The sysinfo code was recently added to derbyclient.jar. I think it was within the last 6 weeks
or so. I searched JIRA but can't find the relevant issue, sorry, but here's a pointer to the
discussion on derby-dev:
http://www.nabble.com/sysinfo-in-derbyclient.jar--%28was-Re%3A-%28DERBY-1470%29-%29-tf2070540.html#a5703831

It was an intentional change, and was done to help the scenario in which the user has only
derbyclient in their classpath.

I believe that your suggested fix (granting derbyclient.jar permission to read the classpath)
is reasonable, and matches what we did to make these tests pass for sysinfo when run
from derby.jar and derbytools.jar.


> sysinfo test fails with "access denied (java.util.PropertyPermission java.class.path
read)" when derbyclient.jar is first in classpath
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1832
>                 URL: http://issues.apache.org/jira/browse/DERBY-1832
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.2.1.0
>            Reporter: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.2.1.0
>
>
> Seen on Linux and Solaris, with Sun JVM 1.4, 1.5, 1.6 when derbyclient.jar is first in
classpath:
>  ********* Diff file derbyall/derbynetmats/DerbyNet/derbynetmats/sysinfo.diff
> *** Start: sysinfo jdk1.4.2_02 DerbyNet derbynetmats:derbynetmats 2006-09-05 08:44:54
***
> 14a15
> > Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> 17,26d17
> < Current Locale :  [English/United States [en_US]]
> < Found support for locale: [de_DE]
> < Found support for locale: [es]
> < Found support for locale: [fr]
> < Found support for locale: [it]
> < Found support for locale: [ja_JP]
> < Found support for locale: [ko_KR]
> < Found support for locale: [pt_BR]
> < Found support for locale: [zh_CN]
> < Found support for locale: [zh_TW]
> 41a33
> > Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> 44,53d35
> < Current Locale :  [English/United States [en_US]]
> < Found support for locale: [de_DE]
> < Found support for locale: [es]
> < Found support for locale: [fr]
> < Found support for locale: [it]
> < Found support for locale: [ja_JP]
> < Found support for locale: [ko_KR]
> < Found support for locale: [pt_BR]
> < Found support for locale: [zh_CN]
> < Found support for locale: [zh_TW]
> 69a52
> > Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> 72,81d54
> < Current Locale :  [English/United States [en_US]]
> < Found support for locale: [de_DE]
> < Found support for locale: [es]
> < Found support for locale: [fr]
> < Found support for locale: [it]
> < Found support for locale: [ja_JP]
> < Found support for locale: [ko_KR]
> < Found support for locale: [pt_BR]
> < Found support for locale: [zh_CN]
> < Found support for locale: [zh_TW]
> Test Failed.
> *** End:   sysinfo jdk1.4.2_02 DerbyNet derbynetmats:derbynetmats 2006-09-05 08:44:59
***

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message