Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6277

WebHdfsFileSystem#toUrl does not perform character escaping for rename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.2.1
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            cnauroth Chris Nauroth
            rramya Ramya Sunil
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: