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

hadoop-auth's PseudoAuthenticationHandler can consume getInputStream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      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-10193.patch
          4 kB
          Gregory Chanan
        2. HADOOP-10193v2.patch
          4 kB
          Gregory Chanan

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: