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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • None
    • fs/s3

    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

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

              Dates

                Created:
                Updated:
                Resolved: