Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D221F18994 for ; Wed, 23 Sep 2015 14:49:07 +0000 (UTC) Received: (qmail 99636 invoked by uid 500); 23 Sep 2015 14:49:04 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 99579 invoked by uid 500); 23 Sep 2015 14:49:04 -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 99566 invoked by uid 99); 23 Sep 2015 14:49:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 14:49:04 +0000 Date: Wed, 23 Sep 2015 14:49:04 +0000 (UTC) From: "Wei-Chiu Chuang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-9123) Copying from the root to a subdirectory should be forbidden MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-9123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wei-Chiu Chuang updated HDFS-9123: ---------------------------------- Summary: Copying from the root to a subdirectory should be forbidden (was: Validation of a path ended with a '/') > Copying from the root to a subdirectory should be forbidden > ----------------------------------------------------------- > > Key: HDFS-9123 > URL: https://issues.apache.org/jira/browse/HDFS-9123 > Project: Hadoop HDFS > Issue Type: Bug > Components: fs > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Priority: Minor > Attachments: HDFS-9123.001.patch, HDFS-9123.002.patch > > > HDFS forbids copying from a directory to its subdirectory (e.g. hdfs dfs -cp /abc /abc/xyz) as otherwise it could cause infinite copying (/abc/xyz/xyz, /abc/xyz/xyz, /abc/xyz/xyz/xyz,... etc) > However, if the source path is ended with a '/' path separator, the existing validation for sub-directories fails. For example, copying from / to /abc would cause infinite copying, until the disk space is filled up. -- This message was sent by Atlassian JIRA (v6.3.4#6332)