Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 4865 invoked from network); 21 Jun 2007 15:46:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jun 2007 15:46:47 -0000 Received: (qmail 19884 invoked by uid 500); 21 Jun 2007 15:46:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 19859 invoked by uid 500); 21 Jun 2007 15:46:51 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 19764 invoked by uid 99); 21 Jun 2007 15:46:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 08:46:50 -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; Thu, 21 Jun 2007 08:46:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 930917141EE for ; Thu, 21 Jun 2007 08:46:26 -0700 (PDT) Message-ID: <4876044.1182440786600.JavaMail.jira@brutus> Date: Thu, 21 Jun 2007 08:46:26 -0700 (PDT) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2910) [classlib][security] Harmony cannot identify 'codeBase' feature in policy file In-Reply-To: <28294141.1167274761272.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/HARMONY-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506939 ] Vasily Zakharov commented on HARMONY-2910: ------------------------------------------ Sorry, I sent the previous comment in error. The last two paragraphs in it are wrong. Here's the right text: As of PolicyEntryTest.testImpliesCodeSource(), it still fails on both RI and Harmony. It seems the test is incorrect, so I fixed the test and improved its functionality a bit. See additional patch Harmony-2910-PolicyEntryTest.patch. > [classlib][security] Harmony cannot identify 'codeBase' feature in policy file > ------------------------------------------------------------------------------ > > Key: HARMONY-2910 > URL: https://issues.apache.org/jira/browse/HARMONY-2910 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ruth Cao > Assignee: Stepan Mishura > Attachments: Harmony-2910-2.zip, Harmony-2910.diff, Harmony-2910.diff, Harmony-2910.diff, regressionTest2910.txt > > > create a simple policy file and then run PolicyTest with the argument and the policy file[1] as following on Windows XP: > -Dtest.bin.dir=c:\api\ -Djava.security.policy= > public class PolicyTest { > public static void main(String[] args) throws Exception { > Policy p = Policy.getPolicy(); > ProtectionDomain pd = new ProtectionDomain(new CodeSource(new URL( > "file:/c:/api/*"), (java.security.cert.Certificate[]) null), null); > PermissionCollection pCollection = p.getPermissions(pd); > Enumeration elements = pCollection.elements(); > while (elements.hasMoreElements()) { > if(elements.nextElement().equals(new AllPermission())){ > System.out.println("contains AllPermission"); > } > } > } > } > RI prints: > contains AllPermission > while Harmony prints nothing. > [1] > grant codeBase "file:${test.bin.dir}/-" { > permission java.security.AllPermission; > }; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.