Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 79221 invoked from network); 23 Nov 2009 22:57:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 22:57:06 -0000 Received: (qmail 60859 invoked by uid 500); 23 Nov 2009 22:57:04 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 60712 invoked by uid 500); 23 Nov 2009 22:57:03 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 60375 invoked by uid 99); 23 Nov 2009 22:57:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 22:57:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 22:57:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B4BC6234C4AC for ; Mon, 23 Nov 2009 14:56:39 -0800 (PST) Message-ID: <210114289.1259016999738.JavaMail.jira@brutus> Date: Mon, 23 Nov 2009 22:56:39 +0000 (UTC) From: "Paul R. Brown (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1576) Provide better error reporting for clients performing updates (or other operations) In-Reply-To: <54826936.1258617459745.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12781688#action_12781688 ] Paul R. Brown commented on SOLR-1576: ------------------------------------- I ended up dealing with this particular item by implementing a custom update processor that puts a block with the document id and a messge into the response when an update fails. > Provide better error reporting for clients performing updates (or other operations) > ----------------------------------------------------------------------------------- > > Key: SOLR-1576 > URL: https://issues.apache.org/jira/browse/SOLR-1576 > Project: Solr > Issue Type: Improvement > Components: update > Affects Versions: 1.4 > Reporter: Paul R. Brown > Priority: Minor > > 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: > {code}X-SOLR-ERROR-MESSAGE: unknown field 'fooBarBaz'{code} > This would snap right into {{SolrDispatchFilter}} in {{sendError}} at line 363: > {code}res.addHeader("X-SOLR-ERROR-MESSAGE",ex.getMessage());{code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.