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

Provide better error reporting for clients performing updates (or other operations)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.4
    • None
    • update
    • None

    Description

      It's frustrating from a client point of view to perform an update and then get back a 400 with no additional information. Would it make sense to supply an HTTP header with information about the error? I was thinking something like:

      X-SOLR-ERROR-MESSAGE: unknown field 'fooBarBaz'

      This would snap right into SolrDispatchFilter in sendError at line 363:

      res.addHeader("X-SOLR-ERROR-MESSAGE",ex.getMessage());

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paulrbrown Paul R. Brown
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: