Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 62102 invoked from network); 13 Apr 2010 22:28:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 22:28:15 -0000 Received: (qmail 16971 invoked by uid 500); 13 Apr 2010 22:28:15 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 16935 invoked by uid 500); 13 Apr 2010 22:28:15 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 16927 invoked by uid 99); 13 Apr 2010 22:28:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 22:28:15 +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; Tue, 13 Apr 2010 22:28:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3DMRpB0014129 for ; Tue, 13 Apr 2010 18:27:51 -0400 (EDT) Message-ID: <23906676.78531271197671245.JavaMail.jira@thor> Date: Tue, 13 Apr 2010 18:27:51 -0400 (EDT) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-1088) Prevent renaming a symlink to it's target In-Reply-To: <29299077.4151270692703804.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/HDFS-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eli Collins updated HDFS-1088: ------------------------------ Status: Patch Available (was: Open) The tests are all in the base classes which are in the patch for HADOOP-6703. > Prevent renaming a symlink to it's target > ------------------------------------------ > > Key: HDFS-1088 > URL: https://issues.apache.org/jira/browse/HDFS-1088 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Reporter: Eli Collins > Assignee: Eli Collins > Attachments: hdfs-1088-1.patch, hdfs-1088-2.patch > > > Here's the HDFS side of HADOOP-6563: > * Small bug fix for renaming a symlink to it's target > * Hdfs#getFileBlockLocations needs to use getUriPath() to ensure an absolute path is passed in. See minor change to INode#getPathNames, which now asserts instead of returning null and causing NPEs. This was exposed via calling FileContext#getFileBlockLocations using a symlink. > * Comment in FSImage around symlinks and image loading -- 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