Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 50660 invoked from network); 10 Oct 2006 18:38:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 18:38:03 -0000 Received: (qmail 9650 invoked by uid 500); 10 Oct 2006 18:38:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9621 invoked by uid 500); 10 Oct 2006 18:38:02 -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 9612 invoked by uid 99); 10 Oct 2006 18:38:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 11:38:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 11:38:01 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 368327142E1 for ; Tue, 10 Oct 2006 11:37:22 -0700 (PDT) Message-ID: <5596810.1160505442220.JavaMail.root@brutus> Date: Tue, 10 Oct 2006 11:37:22 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1951) Missing directory separator in path construction in 'NetworkServerTestSetup.setUp' In-Reply-To: <22163394.1160486119545.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1951?page=all ] Kristian Waagan updated DERBY-1951: ----------------------------------- Attachment: derby-1951-1b.diff You are right Bryan. Sorry, I must have been writing way too many shell scripts lately... 'derby-1951-1b.diff' replaces revision a, incorporating the suggestion Bryan made. Patch ready for more review, or a commit. > Missing directory separator in path construction in 'NetworkServerTestSetup.setUp' > ---------------------------------------------------------------------------------- > > Key: DERBY-1951 > URL: http://issues.apache.org/jira/browse/DERBY-1951 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.3.0.0 > Reporter: Kristian Waagan > Assigned To: Kristian Waagan > Attachments: derby-1951-1a.diff, derby-1951-1b.diff > > > When constructing the path for the server output file, the directory separator (typically '/') is omitted, causing a security violation when running under the security manager. Here's a sample stack trace for a JUnit run: > 1) AllPackagesjava.security.AccessControlException: access denied > (java.io.FilePermission /some/pathserverConsoleOutput.log write) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) > at java.security.AccessController.checkPermission(AccessController.java:401) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) > at java.lang.SecurityManager.checkWrite(SecurityManager.java:954) > at java.io.FileOutputStream.(FileOutputStream.java:169) > at java.io.FileOutputStream.(FileOutputStream.java:70) > at org.apache.derbyTesting.junit.NetworkServerTestSetup$1.run(NetworkServerTestSetup.java:72 > ) > at java.security.AccessController.doPrivileged(Native Method) > at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:65 > ) > at junit.extensions.TestSetup$1.protect(TestSetup.java:18) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) -- 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