Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E29BC2009F3 for ; Thu, 5 May 2016 22:52:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E13561609F9; Thu, 5 May 2016 20:52:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D686160A04 for ; Thu, 5 May 2016 22:52:14 +0200 (CEST) Received: (qmail 99156 invoked by uid 500); 5 May 2016 20:52:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 99118 invoked by uid 99); 5 May 2016 20:52:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 20:52:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E0E0A2C1F5D for ; Thu, 5 May 2016 20:52:12 +0000 (UTC) Date: Thu, 5 May 2016 20:52:12 +0000 (UTC) From: "John Zhuge (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13051) Test for special characters in path being respected during globPaths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 05 May 2016 20:52:15 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Zhuge updated HADOOP-13051: -------------------------------- Hadoop Flags: Reviewed > Test for special characters in path being respected during globPaths > -------------------------------------------------------------------- > > Key: HADOOP-13051 > URL: https://issues.apache.org/jira/browse/HADOOP-13051 > Project: Hadoop Common > Issue Type: Test > Components: fs > Affects Versions: 3.0.0 > Reporter: Harsh J > Assignee: Harsh J > Priority: Minor > Attachments: HADOOP-13051.000.patch > > > On {{branch-2}}, the below is the (incorrect) behaviour today, where paths with special characters get dropped during globStatus calls: > {code} > bin/hdfs dfs -mkdir /foo > bin/hdfs dfs -touchz /foo/foo1 > bin/hdfs dfs -touchz $'/foo/foo1\r' > bin/hdfs dfs -ls '/foo/*' > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1 > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1^M > bin/hdfs dfs -ls '/foo/*' > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1 > {code} > Whereas trunk has the right behaviour, subtly fixed via the pattern library change of HADOOP-12436: > {code} > bin/hdfs dfs -mkdir /foo > bin/hdfs dfs -touchz /foo/foo1 > bin/hdfs dfs -touchz $'/foo/foo1\r' > bin/hdfs dfs -ls '/foo/*' > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1 > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1^M > bin/hdfs dfs -ls '/foo/*' > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1 > -rw-r--r-- 3 harsh supergroup 0 2016-04-22 17:35 /foo/foo1^M > {code} > (I've placed a ^M explicitly to indicate presence of the intentional hidden character) > We should still add a simple test-case to cover this situation for future regressions. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org