Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 26920 invoked from network); 25 Nov 2009 20:45:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 20:45:03 -0000 Received: (qmail 36244 invoked by uid 500); 25 Nov 2009 20:45:02 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 36163 invoked by uid 500); 25 Nov 2009 20:45:02 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 36152 invoked by uid 99); 25 Nov 2009 20:45:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 20:45:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 20:44:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AD5B3234C1EE for ; Wed, 25 Nov 2009 12:44:39 -0800 (PST) Message-ID: <779957611.1259181879708.JavaMail.jira@brutus> Date: Wed, 25 Nov 2009 20:44:39 +0000 (UTC) From: "Karl Pauls (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-1103) PermissionAdmin service can't handle java.ioFilePermission for "<>" In-Reply-To: <964250786.1241030010486.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Pauls resolved FELIX-1103. ------------------------------- Resolution: Fixed Done. Please close this issue if it works for you. > PermissionAdmin service can't handle java.ioFilePermission for "<>" > ------------------------------------------------------------------------------ > > Key: FELIX-1103 > URL: https://issues.apache.org/jira/browse/FELIX-1103 > Project: Felix > Issue Type: Bug > Components: Conditional Permission Admin, Permission Admin > Affects Versions: felix-1.6.0 > Reporter: Ulf Dittmer > Assignee: Karl Pauls > Attachments: Permissions.diff, Permissions.diff > > > The PermissionAdmin service does not handle java.io.FilePermissions correctly that use the special "<>" syntax for the path. It needs to be special-cased in the org.apache.felix.framework.security.util.Permissions.implies(Permission, Bundle) method instead of being interpreted as a regular file name. I've tested that it's sufficient to wrap all the name/postfix handling in a "if (! "<>".equals(name)) { ... }" block. > Affected Felix version is 1.4, because that's the last one that works with PermissionAdmin service. It would affect Felix 1.6 as well if that could be used at all (see bug Felix-1101). > I'm not sure if this qualifies as a "Major" bug, but there's no easy workaround (which the online docs say is what makes a "Minor" bug). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.