[
https://issues.apache.org/jira/browse/HDFS-6662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246359#comment-14246359
]
Haohui Mai commented on HDFS-6662:
----------------------------------
{code}
+ abs_path = encodeURI(abs_path);
var url = '/webhdfs/v1' + abs_path + '?op=GET_BLOCK_LOCATIONS';
{code}
I think it should be {{encodeURIComponent()}} instead of {{encodeURI()}}.
Can you add a unit test to ensure that the DN decodes the path correctly?
> [ 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
> Priority: Critical
> Attachments: 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)