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

QParser must validate existence/absence of "q" parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: search
    • Labels:
      None

      Description

      Each QParser should check if "q" exists or not. For some it will be required others not.
      currently it throws a null pointer:

      java.lang.NullPointerException
      	at org.apache.solr.common.util.StrUtils.splitSmart(StrUtils.java:36)
      	at org.apache.solr.search.OldLuceneQParser.parse(LuceneQParserPlugin.java:104)
      	at org.apache.solr.search.QParser.getQuery(QParser.java:80)
      	at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:67)
      	at org.apache.solr.handler.SearchHandler.handleRequestBody(SearchHandler.java:150)
              ...
      

      see:
      http://www.nabble.com/query-parsing-error-to14124285.html#a14140108

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                ryantxu Ryan McKinley
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: