[ https://issues.apache.org/jira/browse/HARMONY-6496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Catherine Hope updated HARMONY-6496: ------------------------------------ Attachment: 6496.patch Add checkRead to the 3 File methods and add to test_with_security_manager testcase to demonstrate problem. Patch is for Java 6 branch > [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 > 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. - You can reply to this email to add a comment to the issue online.