You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2014/03/21 22:23:49 UTC

[jira] [Updated] (HDFS-6140) WebHDFS cannot create a file with spaces in the name after HA failover changes.

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

Chris Nauroth updated HDFS-6140:
--------------------------------

    Attachment: HDFS-6140.1.patch

The attached patch fixes the bug by switching to a different {{URI}} constructor that takes care of URI escaping for characters like space.  I had written a unit test to cover this in HDFS-4944.  Unfortunately, the unit test had a bug, which is why we didn't catch this earlier.  I've fixed the test too, now passing real spaces in the path instead of pre-escaping them.

> WebHDFS cannot create a file with spaces in the name after HA failover changes.
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-6140
>                 URL: https://issues.apache.org/jira/browse/HDFS-6140
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HDFS-6140.1.patch
>
>
> Attempting to create a file with spaces in the name through WebHDFS now fails with an {{IllegalArgumentException}} while attempting to construct a URI.  This had been fixed earlier in HDFS-4944.  The failure now is a regression introduced by HDFS-6100.



--
This message was sent by Atlassian JIRA
(v6.2#6252)