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

"Path(Path/String parent, String child)" will fail when "child" contains ":"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When the "child" parameter contains ":", "Path(Path/String parent, String child)" will throw the following exception:

      java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ...
      

      Not sure if this is a legit bug. But the following places will hit this error when seeing a Path with a file name containing ":":

      https://github.com/apache/hadoop/blob/f9029c4070e8eb046b403f5cb6d0a132c5d58448/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java#L101
      https://github.com/apache/hadoop/blob/f9029c4070e8eb046b403f5cb6d0a132c5d58448/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/Globber.java#L270

      Attachments

        1. HDFS-14762.001.patch
          2 kB
          Hemanth Boyina
        2. HDFS-14762.002.patch
          2 kB
          Hemanth Boyina
        3. HDFS-14762.003.patch
          2 kB
          Hemanth Boyina
        4. HDFS-14762.004.patch
          2 kB
          Hemanth Boyina

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zsxwing Shixiong Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: