[ https://issues.apache.org/jira/browse/HARMONY-6496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Catherine Hope closed HARMONY-6496.
-----------------------------------
Verified
> [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
|