Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33559 invoked from network); 8 Feb 2007 15:36:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 15:36:28 -0000 Received: (qmail 17240 invoked by uid 500); 8 Feb 2007 15:36:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 17212 invoked by uid 500); 8 Feb 2007 15:36:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 17203 invoked by uid 99); 8 Feb 2007 15:36:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 07:36:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 07:36:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFCB6410957 for ; Thu, 8 Feb 2007 07:36:05 -0800 (PST) Message-ID: <32356881.1170948965783.JavaMail.jira@brutus> Date: Thu, 8 Feb 2007 07:36:05 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2302) AccessControlException for 'user.dir read' in ClientSideSystemPropertiesTest.testConnection In-Reply-To: <30525818.1170857885502.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2302?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471366 ]=20 Daniel John Debrunner commented on DERBY-2302: ---------------------------------------------- The comments you have in these Jira notes as to why these permissions are r= equired would be very useful in the policy file. Otherwise at somepoint in the future someone will have to figure out why su= ch 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 ClientSideSystemPropertiesT= est.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/derbyclie= nt.jar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbytools.j= ar:/home/os136789/Apache/TinderBox_Derby/trunk/jars/insane/derbynet.jar:/ho= me/os136789/Apache/TinderBox_Derby/db2jcc/lib/db2jcc.jar:/home/os136789/Apa= che/TinderBox_Derby/db2jcc/lib/db2jcc_license_c.jar:/home/os136789/Apache/T= inderBox_Derby/trunk/jars/insane/derbyTesting.jar:/home/os136789/Apache/Tin= derBox_Derby/trunk/jars/insane/derbyrun.jar:/home/os136789/Apache/TinderBox= _Derby/trunk/tools/java/jakarta-oro-2.0.8.jar:/home/os136789/Apache/TinderB= ox_Derby/trunk/tools/java/junit.jar:/home/os136789/Apache/TinderBox_Derby/t= runk/jars/insane/derbyLocale_de_DE.jar:/home/os136789/Apache/TinderBox_Derb= y/trunk/jars/insane/derbyLocale_es.jar:/home/os136789/Apache/TinderBox_Derb= y/trunk/jars/insane/derbyLocale_fr.jar:/home/os136789/Apache/TinderBox_Derb= y/trunk/jars/insane/derbyLocale_it.jar:/home/os136789/Apache/TinderBox_Derb= y/trunk/jars/insane/derbyLocale_ja_JP.jar:/home/os136789/Apache/TinderBox_D= erby/trunk/jars/insane/derbyLocale_ko_KR.jar:/home/os136789/Apache/TinderBo= x_Derby/trunk/jars/insane/derbyLocale_pt_BR.jar:/home/os136789/Apache/Tinde= rBox_Derby/trunk/jars/insane/derbyLocale_zh_CN.jar:/home/os136789/Apache/Ti= nderBox_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/tes= ting/Limited/testSummary-504492.html > Seen on TinderBox_Derby since svn r504394. > 1) testConnection(org.apache.derbyTesting.functionTests.tests.derbynet.Cl= ientSideSystemPropertiesTest)java.security.AccessControlException: access d= enied (java.util.PropertyPermission user.dir read) > =09at java.security.AccessControlContext.checkPermission(AccessControlCon= text.java:323) > =09at java.security.AccessController.checkPermission(AccessController.jav= a:546) > =09at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > =09at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:= 1285) > =09at java.lang.System.getProperty(System.java:652) > =09at java.io.UnixFileSystem.resolve(UnixFileSystem.java:118) > =09at java.io.File.getCanonicalPath(File.java:559) > =09at org.apache.derby.client.am.LogWriter$1.run(Unknown Source) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at org.apache.derby.client.am.LogWriter.getPrintWriter(Unknown Source) > =09at org.apache.derby.jdbc.ClientBaseDataSource.computePrintWriter(Unkno= wn Source) > =09at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriter(Unkn= own Source) > =09at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriterForNe= wConnection(Unknown Source) > =09at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source) > =09at java.sql.DriverManager.getConnection(DriverManager.java:582) > =09at java.sql.DriverManager.getConnection(DriverManager.java:185) > =09at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection= (DriverManagerConnector.java:76) > =09at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection= (DriverManagerConnector.java:43) > =09at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnecti= on(TestConfiguration.java:764) > =09at org.apache.derbyTesting.junit.BaseJDBCTestCase.openDefaultConnectio= n(BaseJDBCTestCase.java:195) > =09at org.apache.derbyTesting.junit.BaseJDBCTestCase.getConnection(BaseJD= BCTestCase.java:84) > =09at org.apache.derbyTesting.functionTests.tests.derbynet.ClientSideSyst= emPropertiesTest.testConnection(ClientSideSystemPropertiesTest.java:42) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.jav= a:76) > =09at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > =09at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > =09at junit.extensions.TestSetup.run(TestSetup.java:25) > =09at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > =09at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > =09at junit.extensions.TestSetup.run(TestSetup.java:25) > =09at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > =09at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > =09at junit.extensions.TestSetup.run(TestSetup.java:25) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.