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

PseudoAuthenticationHandler fails with httpcomponents v4.4

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None

      Description

      This shows in the context of WebHCat and Hive (which recently moved to httpcomponents:httpclient:4.4) but could happen in other places.

      URLEncodedUtils.parse(String, Charset) which is called from PseudoAuthenticationHandler.getUserName() with the 1st argument produced by HttpServletRequest.getQueryString().
      The later returns NULL if there is no query string in the URL.

      in httpcoponents:httpclient:4.2.5 parse() gracefully handles first argument being NULL, but in 4.4 it NPEs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ekoifman Eugene Koifman
                Reporter:
                ekoifman Eugene Koifman
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: