You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Ryan (JIRA)" <ji...@apache.org> on 2012/05/30 04:51:22 UTC
[jira] [Created] (SOLR-3496) Query parser exceptions no longer
displayed in response - just displays "null"
Michael Ryan created SOLR-3496:
----------------------------------
Summary: Query parser exceptions no longer displayed in response - just displays "null"
Key: SOLR-3496
URL: https://issues.apache.org/jira/browse/SOLR-3496
Project: Solr
Issue Type: Bug
Affects Versions: 3.6
Reporter: Michael Ryan
Priority: Minor
Prior to 3.6, if you did a query like this:
{noformat}http://localhost:8983/solr/select?q=AND{noformat}
...you would get an exception and stacktrace in the response like this:
{noformat}Problem accessing /solr/select. Reason:
org.apache.lucene.queryParser.ParseException: Cannot parse 'AND'....{noformat}
In 3.6, you get something like this:
{noformat}Problem accessing /solr/select. Reason:
null{noformat}
I think the old behavior was preferable :)
It looks like this was broken by SOLR-3022. Quick fix I think would be to change this:
{code} public SolrException(ErrorCode code, Throwable th) {
this(code, null, th, (th instanceof SolrException) ? ((SolrException)th).logged : false);
}{code}
To this:
{code} public SolrException(ErrorCode code, Throwable th) {
this(code, th.toString(), th, (th instanceof SolrException) ? ((SolrException)th).logged : false);
}{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org