Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10876

The constructor of Path should not take an empty URL as a parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      Paths can no longer be constructed from a null or empty URI. This matches the behavior of the Path(String) constructor, which disallows null or empty Strings.

      Description

      The constructor of Path should not take an empty URL as a parameter, As discussed in HADOOP-10820, This JIRA is to change Path constructor at public Path(URI aUri) to check the empty URI and throw IllegalArgumentException for empty URI.

        Attachments

        1. HADOOP-10876.001.patch
          3 kB
          zhihai xu
        2. HADOOP-10876.000.patch
          2 kB
          zhihai xu

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              zxu zhihai xu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: