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

Solr throws 500 instead of 400 on some malformed requests

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: update
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              fizx Kyle Maxwell

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment