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

hadoop-auth's PseudoAuthenticationHandler can consume getInputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • security
    • None
    • Reviewed

    Description

      I'm trying to use the AuthenticationFilter in front of Apache Solr. The issue I'm running into is that the PseudoAuthenticationHandler calls ServletRequest.getParameter which affects future calls to ServletRequest.getInputStream. I.e. from the javadoc:

      If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via getInputStream() or getReader() can interfere with the execution of this method. 
      

      Solr calls getInputStream after the filter and errors result.

      Attachments

        1. HADOOP-10193v2.patch
          4 kB
          Gregory Chanan
        2. HADOOP-10193.patch
          4 kB
          Gregory Chanan

        Issue Links

          Activity

            People

              gchanan Gregory Chanan
              gchanan Gregory Chanan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: