harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-3568) [classlib][security] Throw AccessControlException when read a file in another direcorty which has been granted read permission in policy file
Date Mon, 05 Nov 2007 07:27:50 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paulex Yang resolved HARMONY-3568.
----------------------------------

    Resolution: Duplicate

Sean and Leo, seems this is duplicated with HARMONY-2910, and there's a more complete patch
provided there, so I'd resolve this as duplicated, please let me know if you are unhappy with
this.

> [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
>            Assignee: 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.


Mime
View raw message