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

Solr throws 500 instead of 400 on some malformed requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.4
    • update
    • None

    Description

      If you submit a malformed xml document to update, Solr returns a 500 error. Clients often treat this as a failure in the server, but it's really a 400 invalid request. Trivial patch is attached, although there may be similar cases (i.e. malformed json) that are also worth investigating.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fizx Kyle Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified