[
https://issues.apache.org/jira/browse/HDFS-15228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061582#comment-17061582
]
Dylan Werner-Meier commented on HDFS-15228:
-------------------------------------------
Hello [~hemanthboyina],
After some more tests, I've provided a Maven's pom.xml to reproduce the bug
exactly.
For some reason, I have the bug in hadoop hdfs client 3.1.2 and 3.2.0, but the
bug is not present in 3.2.1. I'll continue investiguating, but if the bug is
already fixed, I guess this issue can be closed.
> 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: [email protected]
For additional commands, e-mail: [email protected]