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 "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/04/04 14:40:00 UTC

[jira] [Commented] (HDFS-14408) HttpFS handles paths with special charactes different than WebHdfs

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

Wei-Chiu Chuang commented on HDFS-14408:
----------------------------------------

FYI [~smeng]

> HttpFS handles paths with special charactes different than WebHdfs
> ------------------------------------------------------------------
>
>                 Key: HDFS-14408
>                 URL: https://issues.apache.org/jira/browse/HDFS-14408
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: httpfs
>    Affects Versions: 3.1.1
>            Reporter: Andrey Zinovyev
>            Priority: Major
>         Attachments: httpfs-special-fix.patch, httpfs-special-test.patch
>
>
> After HDFS-13176 WebHdfsFileSystem encodes special characters twice. For example path _/tmp/day=2018-01-01_ becomes _/webhdfs/v1/tmp/day%253D2018-01-01_ call. 
> In NamenodeWebHdfsMethods it is handled by decode path twice (first by web server and then in code explicityly).
> But if we use httpfs it fails to get paths with special characters (like `=`), cause it decodes path once.
> Test to reproduce and simple fix in attachment. Although I think that double encoding doesn't look right.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org