[ 
https://issues.apache.org/jira/browse/HDFS-15228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Masatake Iwasaki resolved HDFS-15228.
-------------------------------------
    Resolution: Duplicate

Closing this as duplicate of HDFS-14423. Please reopen if you need.

> Cannot rename file with space in name
> -------------------------------------
>
>                 Key: HDFS-15228
>                 URL: https://issues.apache.org/jira/browse/HDFS-15228
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 3.2.0
>         Environment: Oracle jdk1.8.161
>            Reporter: Dylan Werner-Meier
>            Priority: Major
>         Attachments: TestWithStrangeFilenames.java, pom.xml
>
>
> Hello,
> While using webhdfs, I encountered a strange bug where I just cannot rename a 
> file if it has a space in the filename.
> It seems strange to me, is there anything I am missing ?
>  
> Edit: After some debugging, it seems to be linked with the way spaces are 
> encoded the webhdfs url: the JDK's URLEncoder uses '+' to encode spaces, 
> whereas a CURL command where the filename is encoded with '%20' for spaces 
> works just fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to