You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2007/04/04 08:41:32 UTC

[jira] Updated: (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 ]

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.<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.