Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39154 invoked from network); 24 Oct 2007 14:19:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 14:19:42 -0000 Received: (qmail 3414 invoked by uid 500); 24 Oct 2007 14:19:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 3320 invoked by uid 500); 24 Oct 2007 14:19:29 -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 3311 invoked by uid 99); 24 Oct 2007 14:19:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 07:19:29 -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; Wed, 24 Oct 2007 14:19:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F80E714236 for ; Wed, 24 Oct 2007 07:18:51 -0700 (PDT) Message-ID: <28439630.1193235531323.JavaMail.jira@brutus> Date: Wed, 24 Oct 2007 07:18:51 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Reopened: (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:all-tabpanel ] Tim Ellison reopened HARMONY-2910: ---------------------------------- It would appear that there are two assertions in the new tests accompanying this issue that pass on Windows but fail on Linux. I checked and these are not regressions since (i.e. they also fail on) r587894 Linux. I have temporarily disabled the tests until we figure out the tests are valid, and then fix the bug. see: http://svn.apache.org/viewvc?view=rev&revision=587894 > [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: Tim Ellison > Attachments: H-2910_upd.patch, Harmony-2910-2.zip, Harmony-2910-Fix.patch, Harmony-2910-Fix.patch, Harmony-2910-fix.patch, Harmony-2910-PolicyEntryTest.patch, Harmony-2910-PolicyTest.patch, Harmony-2910-Test.patch, Harmony-2910-Test.patch, 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.