Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41896 invoked from network); 8 Jul 2007 02:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2007 02:28:26 -0000 Received: (qmail 43827 invoked by uid 500); 8 Jul 2007 02:28:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 43786 invoked by uid 500); 8 Jul 2007 02:28:28 -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 43776 invoked by uid 99); 8 Jul 2007 02:28:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2007 19:28:28 -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; Sat, 07 Jul 2007 19:28:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4FDC714168 for ; Sat, 7 Jul 2007 19:28:04 -0700 (PDT) Message-ID: <31694717.1183861684853.JavaMail.jira@brutus> Date: Sat, 7 Jul 2007 19:28:04 -0700 (PDT) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2908) 10.3.1.0 / 1.1.0 Derby eclipse plugin gives security error referring to user.dir read permission because derby.system.home is set to '.' In-Reply-To: <3568740.1183698304445.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 [ https://issues.apache.org/jira/browse/DERBY-2908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren updated DERBY-2908: -------------------------------------- Attachment: DERBY-2908_plugin111.diff DERBY-2908_plugin111.stat Attaching a patch which modifies the plugin to use 'null' by default for derby.system.home. I put some extra if ( != null) although I'm not sure that was even necessary. Also modified the doc to reflect a change in the default value. Increased the plugin versions to 1.1.1. for this. If this looks ok, and someone checks tonight (California time) then I wonder if I should undo Rick's changes to the default policy file & documentation,...? > 10.3.1.0 / 1.1.0 Derby eclipse plugin gives security error referring to user.dir read permission because derby.system.home is set to '.' > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2908 > URL: https://issues.apache.org/jira/browse/DERBY-2908 > Project: Derby > Issue Type: Bug > Components: Eclipse Plug-in > Affects Versions: 10.3.0.0, 10.3.1.0, 10.3.1.1, 10.4.0.0 > Environment: eclipse 3.2.1 with derby 10.3.1.0 core plugin, ui and doc plugin 1.1.0. > Reporter: Myrna van Lunteren > Attachments: derby-2908-patchDefaultPolicy-01.diff, DERBY-2908_plugin111.diff, DERBY-2908_plugin111.stat > > > The Derby nature sets by default -Dderby.system.home=. (set in plugins/eclipse/org.apache.derby.ui/src/org/apache/derby/ui/properties/DerbyProperties.java and checked in plugins/eclipse/org.apache.derby.ui/src/org/apache/derby/uitl/DerbyServerUtils.java) > With the default security policy, however, such a setting for ij & NetworkServerControl results in a security error in ij. > (See stack in thread: http://www.nabble.com/10.3.1.0b-eclipse-plugin---default-security-tf4030218.html) > It's possible this is a bug in itself... > One work around is to add the following permission to the default policy file: > permission java.util.PropertyPermission "user.dir", "read"; > Another solution is to not set the derby.system.home to anything by default, and if it's not set to anything, not pass on -Dderby.system.home= to the networkserver process (specifying -Dderby.system.home= without a value fails to start networkserver). > This would mean increasing the version of the plugins. To 1.1.1? > Yet another thing would be to adjust the plugin to handle adjusting the security policy... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.