Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C16E89CBC for ; Tue, 6 Mar 2012 12:15:23 +0000 (UTC) Received: (qmail 21806 invoked by uid 500); 6 Mar 2012 12:15:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 21773 invoked by uid 500); 6 Mar 2012 12:15:22 -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 21734 invoked by uid 99); 6 Mar 2012 12:15:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 12:15:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 12:15:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2CE99B664 for ; Tue, 6 Mar 2012 12:14:59 +0000 (UTC) Date: Tue, 6 Mar 2012 12:14:59 +0000 (UTC) From: "Kristian Waagan (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <346341536.27042.1331036099185.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1934032030.17056.1330120429298.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5631) Extend SecurityManagerSetup to add extra privileges to the set of default privileges (merge two policy files) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-5631: ----------------------------------- Attachment: derby-5631-1e-merge_policy_files-fix-url.diff Attaching patch 1e, which committed already on Thursday. It deals with more variations of denoting a policy resource, i.e. how to get from String to URL. Committed to trunk with revision 1295609. Hopefully the last commit on this issue. The new functionality will be run as part of suites.All when DERBY-2031 goes in. > Extend SecurityManagerSetup to add extra privileges to the set of default privileges (merge two policy files) > ------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5631 > URL: https://issues.apache.org/jira/browse/DERBY-5631 > Project: Derby > Issue Type: Improvement > Components: Test > Affects Versions: 10.9.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Fix For: 10.9.0.0 > > Attachments: derby-5631-1a-merge_policy_files.diff, derby-5631-1b-merge_policy_files.diff, derby-5631-1c-merge_policy_files.diff, derby-5631-1d-merge_policy_files-fix.diff, derby-5631-1e-merge_policy_files-fix-url.diff, derby-5631-2a-introduce_NO_POLICY_constant.diff > > > When moving ProtocolTest into suites all (see DERBY-2031), I needed to allow the test code to create a socket. There was already a policy file for the old harness for doing this, but when using this with the JUnit framework I ended up adding privilege after privilege to get the framework itself running. > Instead of creating a large policy file duplicating all the privileges that the framework requires to function properly, I think it would be better to make the SecurityManagerSetup capable of merging the test specific policy file with the default policy file. > This mode of operation can be used when you need a few extra privileges to execute the test, but there are probably also tests where you want full control of the privileges - in which case you use the existing mode of operation. > I'm not 100% sure this approach will always work, but basic testing has shown promising results. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira