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"

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.3, 6.0
    • Component/s: clients - java
    • Labels:
      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

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              alexander.dietrich Alexander Dietrich
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: