Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-2508

Search box with just spaces results in Error

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.0-ALPHA1, 2.0.0
    • 2.0.0
    • Search
    • None

      If you just type spaces into the Search page search box, results in Internal Server Error.

      [ERROR] org.apache.solr.common.SolrException: org.apache.solr.common.SolrException: org.apache.lucene.queryParser.ParseException: Cannot parse 'bucket: ': Encountered "<EOF>" at line 1, column 9.
      Was expecting one of:
          "(" ...
          "*" ...
      <QUOTED> ...
      <TERM> ...
      <PREFIXTERM> ...
      <WILDTERM> ...
          "[" ...
          "{" ...
      <NUMBER> ...

          at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:108)
          at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:173)
          at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
          at org.apache.solr.core.SolrCore.execute(SolrCore.java:1360)
          at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:140)
          at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
          at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
          at sgf.gateway.search.provider.solr.SolrSearchProvider.executeQuery(SolrSearchProvider.java:150)
          at sgf.gateway.search.provider.solr.SolrSearchProvider.search(SolrSearchProvider.java:69)
          at sgf.gateway.web.controllers.search.SearchController.processSubmit(SearchController.java:141)
          at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)

              cgrant Christy Grant
              cgrant Christy Grant
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: