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

SolrException usage in solrj client code can't handle all possible http error codes returned by servers -- example "413 Request Entity Too Large"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.3, 6.0
    • clients - java
    • None

    Description

      Solr responds to excessively large queries with a 413 status code, but HttpSolrServer.request() loses this information when it tries to look up the code in SolrException.ErrorCode, resulting in a status code 0 in the thrown exception.

      Being able to see this status code would be helpful.

      Attachments

        1. SOLR-4487.patch
          6 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            alexander.dietrich Alexander Dietrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: