You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "kanaka kumar avvaru (JIRA)" <ji...@apache.org> on 2015/03/18 15:35:38 UTC

[jira] [Commented] (HDFS-7953) Browse Directory can't work if path contains # in Namenode web UI

    [ https://issues.apache.org/jira/browse/HDFS-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367196#comment-14367196 ] 

kanaka kumar avvaru commented on HDFS-7953:
-------------------------------------------

In {{explorer.js}}  file  {code} browse_directory(dir){ ...  var url = '/webhdfs/v1' + dir + '?op=LISTSTATUS' ...} {code}

The directory path in URL is not encoded which is causing the error from server side.

I am submitting the patch to encode path with same function used to fix {{HDFS-6662}}

> Browse Directory can't work if path contains # in Namenode web UI
> -----------------------------------------------------------------
>
>                 Key: HDFS-7953
>                 URL: https://issues.apache.org/jira/browse/HDFS-7953
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: kanaka kumar avvaru
>            Assignee: kanaka kumar avvaru
>            Priority: Minor
>         Attachments: hdfs-7953.01.patch
>
>
> 1. Create a directory with name containing '#' like test#folder
> 2. Add a file under this folder
> 3. Use NameNode UI to browse the folder
> It gives the following error in web UI
> "Failed to retrieve data from /webhdfs/v1/test#folder?op=LISTSTATUS: Bad Request"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)