[ https://issues.apache.org/jira/browse/HDFS-7816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kihwal Lee reopened HDFS-7816: ------------------------------ Assignee: (was: Brahma Reddy Battula) HDFS-6662 only partially fixes the problem. The decoding is done by calling {{decodeComponent()}}, which decodes "+" as a space. A "+" sign in query string should be decoded as a space, but not if in the path. For proper decoding of path, we can create a {{URI}} object with the encoded string and then call getPath(), which only decodes "%", not "+". > Unable to open webhdfs paths with escape characters > --------------------------------------------------- > > Key: HDFS-7816 > URL: https://issues.apache.org/jira/browse/HDFS-7816 > Project: Hadoop HDFS > Issue Type: Bug > Components: webhdfs > Affects Versions: 2.7.0 > Reporter: Jason Lowe > Priority: Blocker > > webhdfs requests to open files with % characters in the filename fail because > the filename is not being decoded properly. For example: > $ hadoop fs -cat 'webhdfs://nn/user/somebody/abc%def' > cat: File does not exist: /user/somebody/abc%25def -- This message was sent by Atlassian JIRA (v6.3.4#6332)