Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19365

Error in console when navigating to a non existent tag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 13.10.3, 14.1-rc-1
    • 14.0-rc-1
    • Event Stream, Notifications
    • None
    • Windows 11 Pro 64 bit, Edge 97, using a local instance of XWiki 14.0 RC1 on MySQL 8, Tomcat 9.0.58
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Navigate to a non existing tag (e.g. go to <server>/xwiki/bin/view/Main/Tags?do=viewTag&tag=NonExistingTag)

      EXPECTED RESULTS

      No errors/ warnings are encountered.

      ACTUAL RESULTS

      In XWiki console, the following error and warning are displayed:

      2022-01-26 14:32:27,876 [notifications job group daemon thread - org.xwiki.rendering.async.internal.AsyncRendererJob@5d778425([notifications, display, 5ALERT_17xwiki:XWiki.Admin_10_null_1677821614, locale, en, request.wiki, xwiki, user, xwiki:XWiki.Admin, 18])] ERROR o.a.s.h.RequestHandlerBase     - org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'document:()': Encountered " ")" ") "" at line 1, column 10.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
      
              at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:220)
              at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:332)
              at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:216)
              at org.apache.solr.core.SolrCore.execute(SolrCore.java:2646)
              at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:229)
              at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
              at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
              at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
              at org.xwiki.eventstream.store.solr.internal.SolrEventStore.search(SolrEventStore.java:748)
              at org.xwiki.eventstream.store.solr.internal.SolrEventStore.search(SolrEventStore.java:738)
              at org.xwiki.eventstream.internal.DefaultEventStore.search(DefaultEventStore.java:341)
              at org.xwiki.notifications.sources.internal.EventSearcher.searchStoreEvents(EventSearcher.java:112)
              at org.xwiki.notifications.sources.internal.EventSearcher.searchEvents(EventSearcher.java:85)
              at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:126)
              at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:111)
              at org.xwiki.notifications.notifiers.internal.DefaultAsyncNotificationRenderer.render(DefaultAsyncNotificationRenderer.java:115)
              at org.xwiki.rendering.async.internal.AsyncRendererJob.runInternal(AsyncRendererJob.java:109)
              at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
              at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: org.apache.solr.search.SyntaxError: Cannot parse 'document:()': Encountered " ")" ") "" at line 1, column 10.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
      
              at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:274)
              at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:49)
              at org.apache.solr.search.QParser.getQuery(QParser.java:174)
              at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:209)
              ... 21 more
      Caused by: org.apache.solr.parser.ParseException: Encountered " ")" ") "" at line 1, column 10.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
      
              at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:885)
              at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:767)
              at org.apache.solr.parser.QueryParser.Query(QueryParser.java:167)
              at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:282)
              at org.apache.solr.parser.QueryParser.Query(QueryParser.java:162)
              at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131)
              at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:270)
              ... 24 more
      
      2022-01-26 14:32:27,881 [notifications job group daemon thread - org.xwiki.rendering.async.internal.AsyncRendererJob@5d778425([notifications, display, 5ALERT_17xwiki:XWiki.Admin_10_null_1677821614, locale, en, request.wiki, xwiki, user, xwiki:XWiki.Admin, 18])] WARN  o.x.n.s.i.EventSearcher        - Failed to get events from the EventStore. Reason: [ParseException: Encountered " ")" ") "" at line 1, column 10.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
          ]. Trying the legacy store.

       

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: