Solr
  1. Solr
  2. SOLR-5442

Python client cannot parse proxied response when served by Tomcat.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Seems that propagating the transfer-encoding and connection headers from the proxied response to the real response can cause some http clients (python's so far) to see chunked encoding data as part of the supposedly non chunked response content. The headers are also duplicated in the response.

      The headers do not get duplicated with Jetty, and python http libs seem to have no problems when getting proxied via Jetty.

      Testing seems to confirm that not passing on these headers fixes the Tomcat issue.

        Issue Links

          Activity

          Hide
          Mark Miller added a comment -

          Patch includes SOLR-5445

          Show
          Mark Miller added a comment - Patch includes SOLR-5445
          Hide
          ASF subversion and git services added a comment -

          Commit 1542333 from Mark Miller in branch 'dev/trunk'
          [ https://svn.apache.org/r1542333 ]

          SOLR-5442: Python client cannot parse proxied response when served by Tomcat.
          SOLR-5445: Proxied responses should propagate all headers rather than the first one for each key.

          Show
          ASF subversion and git services added a comment - Commit 1542333 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1542333 ] SOLR-5442 : Python client cannot parse proxied response when served by Tomcat. SOLR-5445 : Proxied responses should propagate all headers rather than the first one for each key.
          Hide
          ASF subversion and git services added a comment -

          Commit 1542335 from Mark Miller in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1542335 ]

          SOLR-5442: Python client cannot parse proxied response when served by Tomcat.
          SOLR-5445: Proxied responses should propagate all headers rather than the first one for each key.

          Show
          ASF subversion and git services added a comment - Commit 1542335 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1542335 ] SOLR-5442 : Python client cannot parse proxied response when served by Tomcat. SOLR-5445 : Proxied responses should propagate all headers rather than the first one for each key.
          Hide
          ASF subversion and git services added a comment -

          Commit 1553941 from Mark Miller in branch 'dev/branches/lucene_solr_4_6'
          [ https://svn.apache.org/r1553941 ]

          SOLR-5442: Python client cannot parse proxied response when served by Tomcat.
          SOLR-5445: Proxied responses should propagate all headers rather than the first one for each key.

          Show
          ASF subversion and git services added a comment - Commit 1553941 from Mark Miller in branch 'dev/branches/lucene_solr_4_6' [ https://svn.apache.org/r1553941 ] SOLR-5442 : Python client cannot parse proxied response when served by Tomcat. SOLR-5445 : Proxied responses should propagate all headers rather than the first one for each key.
          Hide
          ASF subversion and git services added a comment -

          Commit 1553942 from Mark Miller in branch 'dev/trunk'
          [ https://svn.apache.org/r1553942 ]

          SOLR-5442: Move CHANGES entry to 4.6.1
          SOLR-5445: Move CHANGES entry to 4.6.1

          Show
          ASF subversion and git services added a comment - Commit 1553942 from Mark Miller in branch 'dev/trunk' [ https://svn.apache.org/r1553942 ] SOLR-5442 : Move CHANGES entry to 4.6.1 SOLR-5445 : Move CHANGES entry to 4.6.1
          Hide
          ASF subversion and git services added a comment -

          Commit 1553943 from Mark Miller in branch 'dev/branches/branch_4x'
          [ https://svn.apache.org/r1553943 ]

          SOLR-5442: Move CHANGES entry to 4.6.1
          SOLR-5445: Move CHANGES entry to 4.6.1

          Show
          ASF subversion and git services added a comment - Commit 1553943 from Mark Miller in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1553943 ] SOLR-5442 : Move CHANGES entry to 4.6.1 SOLR-5445 : Move CHANGES entry to 4.6.1

            People

            • Assignee:
              Mark Miller
              Reporter:
              Mark Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development