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

s3n:// incorrectly handles URLs with secret keys that contain a slash

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:

      Description

      This is similar to HADOOP-3733, but happens on s3n:// instead of s3://.

      Essentially if I have a path like "s3n://key:pass%2Fword@example.com/test", it will under certain circumstances be replaced with "s3n://key:pass/test" which then causes "Invalid hostname in URI" exceptions.

      I have a unit test and a fix for this. I'll make a pull request in a moment.

        Attachments

        1. HADOOP-10511.patch
          3 kB
          Daniel Darabos
        2. HADOOP-10511-002.patch
          3 kB
          Steve Loughran

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                darabos Daniel Darabos
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: