You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Masatake Iwasaki (Jira)" <ji...@apache.org> on 2020/04/17 04:51:00 UTC

[jira] [Resolved] (HDFS-15228) Cannot rename file with space in name

     [ 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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org