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 4E1E410BA3 for ; Fri, 7 Mar 2014 06:24:51 +0000 (UTC) Received: (qmail 70502 invoked by uid 500); 7 Mar 2014 06:24:48 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 70143 invoked by uid 500); 7 Mar 2014 06:24:46 -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 70109 invoked by uid 99); 7 Mar 2014 06:24:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2014 06:24:44 +0000 Date: Fri, 7 Mar 2014 06:24:43 +0000 (UTC) From: "sathish (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HDFS-6068) Disallow snapshot names that are also invalid directory names 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-6068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sathish reassigned HDFS-6068: ----------------------------- Assignee: sathish > Disallow snapshot names that are also invalid directory names > ------------------------------------------------------------- > > Key: HDFS-6068 > URL: https://issues.apache.org/jira/browse/HDFS-6068 > Project: Hadoop HDFS > Issue Type: Bug > Components: snapshots > Affects Versions: 2.4.0 > Reporter: Andrew Wang > Assignee: sathish > > There are a number of restrictions on valid names in HDFS. For example, you can't name a directory "." or "..", or something containing a ":". > However, I can happily create a snapshot named "a:b:c", resulting in this: > {code} > -> % hdfs dfs -createSnapshot /home/andrew a:b:c > Created snapshot /home/andrew/.snapshot/a:b:c > -> % hadoop fs -ls /home/andrew/.snapshot > -ls: java.net.URISyntaxException: Relative path in absolute URI: a:b:c > Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [ ...] > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)