Ramya Sunil created HDFS-6277:
---------------------------------
Summary: WebHdfsFileSystem#toUrl does not perform character
escaping for rename
Key: HDFS-6277
URL: https://issues.apache.org/jira/browse/HDFS-6277
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Ramya Sunil
Assignee: Chris Nauroth
Found this issue while testing HDFS-6141. WebHdfsFileSystem#toUrl does not
perform character escaping for rename and causes the operation to fail.
This bug does not exist on 2.x
For e.g:
$ hadoop dfs -rmr 'webhdfs://<namenode>:<port>/tmp/test dirname with spaces'
Problem with Trash.Unexpected HTTP response: code=400 != 200, op=RENAME,
message=Bad Request. Consider using -skipTrash option
rmr: Failed to move to trash: webhdfs://<namenode>:<port>/tmp/test dirname with
spaces
--
This message was sent by Atlassian JIRA
(v6.2#6252)