lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ryan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3496) Query parser exceptions no longer displayed in response - just displays "null"
Date Wed, 30 May 2012 02:51:22 GMT
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


Mime
View raw message