Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 37911 invoked from network); 4 Apr 2007 06:41:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 06:41:55 -0000 Received: (qmail 33627 invoked by uid 500); 4 Apr 2007 06:42:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 33528 invoked by uid 500); 4 Apr 2007 06:42:02 -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 33519 invoked by uid 99); 4 Apr 2007 06:42:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 23:42:01 -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, 03 Apr 2007 23:41:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C491714045 for ; Tue, 3 Apr 2007 23:41:32 -0700 (PDT) Message-ID: <31694690.1175668892234.JavaMail.jira@brutus> Date: Tue, 3 Apr 2007 23:41:32 -0700 (PDT) From: "Sean Qiu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3568) [classlib][security] Throw AccessControlException when read a file in another direcorty which has been granted read permission in policy file In-Reply-To: <31000475.1175668112224.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-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Qiu updated HARMONY-3568: ------------------------------ Attachment: testSecurity.zip Could anybody check this test pls? Thanks > [classlib][security] Throw AccessControlException when read a file in another direcorty which has been granted read permission in policy file > --------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3568 > URL: https://issues.apache.org/jira/browse/HARMONY-3568 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows XP > Reporter: Sean Qiu > Attachments: testSecurity.zip > > > test.policy grant the source code of testSecurity.class the permission of read the ../file/test.txt. > RI can finish the code successfully, while harmony will throw : > Exception in thread "main" java.security.AccessControlException: Access denied (java.io.FilePermissi > on ..\file\test.txt read) > at java.security.AccessController.checkPermission(AccessController.java:94) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:746) > at java.lang.SecurityManager.checkRead(SecurityManager.java:398) > at java.io.FileInputStream.(FileInputStream.java:72) > at java.io.FileInputStream.(FileInputStream.java:123) > at testSecurity.main(testSecurity.java:9) > Files in the zip: > src/testSecurity.class > /test.policy > file/test.txt -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.