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

QParser must validate existence/absence of "q" parameter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 3.6, 4.0-ALPHA
    • search
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment