harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6496) [java6][classlib][luni] File.getTotalSpace(), getFreeSpace() and getUsableSpace() not throwing SecurityException without read permission
Date Sat, 10 Apr 2010 16:45:41 GMT

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

Mark Hindess resolved HARMONY-6496.
-----------------------------------

    Resolution: Fixed

Applied patch in r932762.  Please confirm (by closing this JIRA) that it has been applied
as expected.

> [java6][classlib][luni] File.getTotalSpace(), getFreeSpace() and getUsableSpace() not
throwing SecurityException without read permission
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6496
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6496
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 6.0M1
>            Reporter: Catherine Hope
>            Assignee: Mark Hindess
>         Attachments: 6496.patch
>
>
> Calling File.getTotalSpace(), getFreeSpace() and getUsableSpace() doesn't throw a SecurityException
if the runtime permission getFileSystemAttributes has been granted but the permission to read
the file has not been granted, according to the spec:
> SecurityException - If a security manager has been installed and it denies RuntimePermission("getFileSystemAttributes")
 or its SecurityManager.checkRead(String) method denies read access to the file named by this
abstract pathname

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message