Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 82476 invoked from network); 19 Jun 2007 19:49:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 19:49:47 -0000 Received: (qmail 66917 invoked by uid 500); 19 Jun 2007 19:49:50 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 66828 invoked by uid 500); 19 Jun 2007 19:49:50 -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 66819 invoked by uid 99); 19 Jun 2007 19:49:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 12:49: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; Tue, 19 Jun 2007 12:49:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 572CF7141FD for ; Tue, 19 Jun 2007 12:49:26 -0700 (PDT) Message-ID: <25875185.1182282566354.JavaMail.jira@brutus> Date: Tue, 19 Jun 2007 12:49: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_12506278 ] Vasily Zakharov commented on HARMONY-2910: ------------------------------------------ Stepan, is it the "cyclic dependency" you were talking about? I also tried to investigate HARMONY-3939 with this patch applied, and found that the test attached there fails on both IBM VM and DRL VM with the same kind of StackOverflowError. So the problem exists on DRL VM also. In this context, the fact that tests.api.java.security.PermissionCollectionTest.test_impliesLjava_security_Permission() passes on DRL VM looks very strange. > [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.