Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 5214 invoked from network); 12 Apr 2010 12:19:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 12:19:05 -0000 Received: (qmail 45778 invoked by uid 500); 12 Apr 2010 12:19:05 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 45759 invoked by uid 500); 12 Apr 2010 12:19:05 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 45752 invoked by uid 99); 12 Apr 2010 12:19:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 12:19:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 12:19:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3CCIfMD025377 for ; Mon, 12 Apr 2010 08:18:41 -0400 (EDT) Message-ID: <10854070.21671271074721564.JavaMail.jira@thor> Date: Mon, 12 Apr 2010 08:18:41 -0400 (EDT) From: "Catherine Hope (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-6496) [java6][classlib][luni] File.getTotalSpace(), getFreeSpace() and getUsableSpace() not throwing SecurityException without read permission In-Reply-To: <808225033.8751270828190825.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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