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 8879010C75 for ; Tue, 10 Feb 2015 01:32:36 +0000 (UTC) Received: (qmail 25202 invoked by uid 500); 10 Feb 2015 01:32:36 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 25145 invoked by uid 500); 10 Feb 2015 01:32:36 -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 25133 invoked by uid 99); 10 Feb 2015 01:32:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2015 01:32:36 +0000 Date: Tue, 10 Feb 2015 01:32:36 +0000 (UTC) From: "Akira AJISAKA (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6662) [ UI ] Not able to open file from UI if file path contains "%" 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-6662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313333#comment-14313333 ] Akira AJISAKA commented on HDFS-6662: ------------------------------------- Cancelling my +1. Some comments: {code} + private static final String SCAPED_PATH = "hdfs-6662/test%25251%26%3Dtest?op=OPEN"; + private static final String EXPECTED_PATH = "/hdfs-6662/test%251&=test"; {code} The paths look to be used only once, so would you move them into the test method? {code} + Assert.assertTrue(testParser.path().equals(EXPECTED_PATH)); {code} You can use {{Assert.assertEquals(expected, actual)}} instead of {{Assert.assertTrue}} to make the error message clear. > [ UI ] Not able to open file from UI if file path contains "%" > -------------------------------------------------------------- > > Key: HDFS-6662 > URL: https://issues.apache.org/jira/browse/HDFS-6662 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.4.1 > Reporter: Brahma Reddy Battula > Assignee: Gerson Carlos > Priority: Critical > Attachments: hdfs-6662.001.patch, hdfs-6662.002.patch, hdfs-6662.patch > > > 1. write a file into HDFS is such a way that, file name is like 1%2%3%4 > 2. using NameNode UI browse the file > throwing following Exception. > "Path does not exist on HDFS or WebHDFS is disabled. Please check your path or enable WebHDFS" > HBase write its WAL files data in HDFS using % contains in file name > eg: /hbase/WALs/HOST-****,60020,1404731504691/HOST-***-130%2C60020%2C1404731504691.1404812663950.meta > > the above file info is not opening in the UI. -- This message was sent by Atlassian JIRA (v6.3.4#6332)