db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2302) AccessControlException for 'user.dir read' in ClientSideSystemPropertiesTest.testConnection
Date Thu, 08 Feb 2007 15:36:05 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471366
] 

Daniel John Debrunner commented on DERBY-2302:
----------------------------------------------

The comments you have in these Jira notes as to why these permissions are required would be
very useful in the policy file.
Otherwise at somepoint in the future someone will have to figure out why such permissions
are needed.

Also the fact that only policy files were changed seems to imply that DERBY-811 has been fixed,
would require some checking to confirm though.

> AccessControlException for 'user.dir read' in ClientSideSystemPropertiesTest.testConnection
> -------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2302
>                 URL: https://issues.apache.org/jira/browse/DERBY-2302
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.3.0.0
>         Environment: Java Version:    1.6.0
> Java Vendor:     Sun Microsystems Inc.
> Java home:       /usr/local/java/jdk1.6.0_01/jre
> Java classpath:  /home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derby.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyclient.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbytools.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbynet.jar:/home/os136789/Apache/TinderBox_Derby/db2jcc/lib/db2jcc.jar:/home/os136789/Apache/TinderBox_Derby/db2jcc/lib/db2jcc_license_c.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyTesting.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyrun.jar:/home/os136789/Apache/TinderBox_Derby/trunk/tools/java/jakarta-oro-2.0.8.jar:/home/os136789/Apache/TinderBox_Derby/trunk/tools/java/junit.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_de_DE.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_es.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_fr.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_it.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_ja_JP.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_ko_KR.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_pt_BR.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_zh_CN.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyLocale_zh_TW.jar
> OS name:         SunOS
> OS architecture: x86
> OS version:      5.10
> Java user name:  os136789
> Java user home:  /home/os136789
> Java user dir:   /export/home/tmp/os136789/testingDerbyTinderBox/SunOS-5.10_i86pc-i386/org.apache.derbyTesting.functionTests.suites.All
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derby.jar] 10.3.0.0 alpha -
(504492)
> [/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbytools.jar] 10.3.0.0 alpha
- (504492)
> [/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbynet.jar] 10.3.0.0 alpha
- (504492)
> [/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbyclient.jar] 10.3.0.0 alpha
- (504492)
> [/home/os136789/Apache/TinderBox_Derby/db2jcc/lib/db2jcc.jar] 2.4 - (17)
> [/home/os136789/Apache/TinderBox_Derby/db2jcc/lib/db2jcc_license_c.jar] 2.4 - (17)
>            Reporter: Ole Solberg
>         Assigned To: Mamta A. Satoor
>            Priority: Minor
>         Attachments: DERBY2302_PolicyFileChange_diff_v1.txt
>
>
> See e.g. http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/Limited/testSummary-504492.html
> Seen on TinderBox_Derby since svn r504394.
> 1) testConnection(org.apache.derbyTesting.functionTests.tests.derbynet.ClientSideSystemPropertiesTest)java.security.AccessControlException:
access denied (java.util.PropertyPermission user.dir read)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
> 	at java.security.AccessController.checkPermission(AccessController.java:546)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
> 	at java.lang.System.getProperty(System.java:652)
> 	at java.io.UnixFileSystem.resolve(UnixFileSystem.java:118)
> 	at java.io.File.getCanonicalPath(File.java:559)
> 	at org.apache.derby.client.am.LogWriter$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.derby.client.am.LogWriter.getPrintWriter(Unknown Source)
> 	at org.apache.derby.jdbc.ClientBaseDataSource.computePrintWriter(Unknown Source)
> 	at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriter(Unknown Source)
> 	at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriterForNewConnection(Unknown
Source)
> 	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:582)
> 	at java.sql.DriverManager.getConnection(DriverManager.java:185)
> 	at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
> 	at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:43)
> 	at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:764)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.openDefaultConnection(BaseJDBCTestCase.java:195)
> 	at org.apache.derbyTesting.junit.BaseJDBCTestCase.getConnection(BaseJDBCTestCase.java:84)
> 	at org.apache.derbyTesting.functionTests.tests.derbynet.ClientSideSystemPropertiesTest.testConnection(ClientSideSystemPropertiesTest.java:42)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
> 	at junit.extensions.TestSetup.run(TestSetup.java:25)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message