You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/04/13 07:56:15 UTC
[jira] Assigned: (HARMONY-3568) [classlib][security] Throw
AccessControlException when read a file in another direcorty which has been
granted read permission in policy file
[ https://issues.apache.org/jira/browse/HARMONY-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paulex Yang reassigned HARMONY-3568:
------------------------------------
Assignee: Paulex Yang
> [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
> Assigned To: Paulex Yang
> Attachments: patch-3568.diff, 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.<init>(FileInputStream.java:72)
> at java.io.FileInputStream.<init>(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.