Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 96628 invoked from network); 5 May 2007 06:49:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2007 06:49:37 -0000 Received: (qmail 69935 invoked by uid 500); 5 May 2007 06:49:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 69724 invoked by uid 500); 5 May 2007 06:49:42 -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 69709 invoked by uid 99); 5 May 2007 06:49:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 23:49:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 04 May 2007 23:49:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 770B6714048 for ; Fri, 4 May 2007 23:49:15 -0700 (PDT) Message-ID: <27888829.1178347755455.JavaMail.jira@brutus> Date: Fri, 4 May 2007 23:49:15 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-811) Creating trace files in derbytclient fails when running with a SecurityManager In-Reply-To: <1136646933.1137183020315.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-811: --------------------------------- Is this issue fixed now? > Creating trace files in derbytclient fails when running with a SecurityManager > ------------------------------------------------------------------------------ > > Key: DERBY-811 > URL: https://issues.apache.org/jira/browse/DERBY-811 > Project: Derby > Issue Type: Bug > Components: Network Client, Security > Affects Versions: 10.1.2.1, 10.2.1.6 > Reporter: Daniel John Debrunner > Assigned To: Mamta A. Satoor > Priority: Minor > Attachments: DERBY811_RemoveHardcodedSlashForFileSeparator_diff_v01.txt, DERBY811_RunCheckDriverWithSecurityManager_diff_v01.txt > > > Can be seen by running the test jdbcapi/checkDriver.java in the DerbyNetClient framework. > Another bug in the code is in ClientBaseDataSource.computePrintWriter where the file separator is hard coded as "/". > java.security.AccessControlException: access denied (java.io.FilePermission C:\_work\svn_clean2\trunk\systest\out2\DerbyNetClient\checkDriver\trace.out write) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292) > at java.security.AccessController.checkPermission(AccessController.java:476) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:538) > at java.lang.SecurityManager.checkWrite(SecurityManager.java:968) > at java.io.FileOutputStream.(FileOutputStream.java:191) > at java.io.FileOutputStream.(FileOutputStream.java:124) > at org.apache.derby.client.am.LogWriter.getPrintWriter(LogWriter.java:1190) > at org.apache.derby.jdbc.ClientBaseDataSource.computePrintWriter(ClientBaseDataSource.java:587) > at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriter(ClientBaseDataSource.java:528) > at org.apache.derby.jdbc.ClientBaseDataSource.computeDncLogWriterForNewConnection(ClientBaseDataSource.java:512) > at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:116) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDriver.testConnect(checkDriver.java:397) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDriver.testClientAttributes(checkDriver.java:177) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.checkDriver.main(checkDriver.java:133) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.