Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7681

HttpSolrClient fails with a confusing error when a GET request is too big

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      If a request is sent with too long an URL for GET, the Solr server responds as follows:

      HTTP/1.1 413 FULL head
      
      Content-Length: 0
      Connection: close
      Server: Jetty(8.1.10.v20130312)
      

      oascsi.HttpSolrServer.executeMethod currently in such a situation, goes ahead and tries to parse a Content-Type header in such a case and ends up with a SolrServerException: Error executing query caused by org.apache.http.ParseException: Invalid content type.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andyetitmoves Ramkumar Aiyengar
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: