Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 20736 invoked from network); 26 Jul 2006 11:14:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2006 11:14:46 -0000 Received: (qmail 94657 invoked by uid 500); 26 Jul 2006 11:14:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94608 invoked by uid 500); 26 Jul 2006 11:14:39 -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 94580 invoked by uid 99); 26 Jul 2006 11:14:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 04:14:39 -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; Wed, 26 Jul 2006 04:14:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84E43410010 for ; Wed, 26 Jul 2006 11:12:16 +0000 (GMT) Message-ID: <6115670.1153912336542.JavaMail.jira@brutus> Date: Wed, 26 Jul 2006 04:12:16 -0700 (PDT) From: "Andreas Korneliussen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1545) derbynet/testProtocol.java fails with security manager enabled In-Reply-To: <30886221.1153398675189.JavaMail.jira@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-1545?page=all ] Andreas Korneliussen updated DERBY-1545: ---------------------------------------- Attachment: DERBY-1545.diff DERBY-1545.stat Attached is a patch (DERBY-1545.diff + stat) which gives socket permission to derbyTesting.jar. > derbynet/testProtocol.java fails with security manager enabled > -------------------------------------------------------------- > > Key: DERBY-1545 > URL: http://issues.apache.org/jira/browse/DERBY-1545 > Project: Derby > Issue Type: Bug > Components: Regression Test Failure > Affects Versions: 10.2.0.0 > Environment: Solaris 10 x86, Sun JVM 1.5.0 > Reporter: Knut Anders Hatlen > Assigned To: Andreas Korneliussen > Attachments: DERBY-1545.diff, DERBY-1545.stat > > > The tinderbox test started failing after revision 423676 which enabled security manager for derbynet/testProtocol.java. See http://www.multinet.no/~solberg/public/Apache/TinderBox_Derby/testlog/SunOS-5.10_i86pc-i386/423706-derbyall_diff.txt > Exception in thread "main" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1527 connect,resolve) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) > at java.security.AccessController.checkPermission(AccessController.java:427) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) > at java.net.Socket.connect(Socket.java:501) > at java.net.Socket.connect(Socket.java:457) > at java.net.Socket.(Socket.java:365) > at java.net.Socket.(Socket.java:178) > at org.apache.derby.impl.drda.TestProto.getConnection(Unknown Source) > at org.apache.derby.impl.drda.TestProto.(Unknown Source) > at org.apache.derbyTesting.functionTests.tests.derbynet.testProtocol.executeFile(Unknown Source) > at org.apache.derbyTesting.functionTests.tests.derbynet.testProtocol.main(Unknown Source) -- 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