harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6496) [java6][classlib][luni] File.getTotalSpace(), getFreeSpace() and getUsableSpace() not throwing SecurityException without read permission
Date Fri, 09 Apr 2010 15:49:50 GMT
[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


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message