Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-456

query parser fails when run in "no fulltext parse" mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.5.0
    • OpenCMIS 0.6.0
    • opencmis-server
    • None

    Description

      When running the parser and calling:

      walker = QueryUtil.getWalker(statement);
      walker.setDoFullTextParse(false);
      walker.query(...);
      

      There is an error in the parser:

      message: Line 0:0 mismatched tree node: EOF expecting <UP>
      Caused by: Exception: org.antlr.runtime.MismatchedTreeNodeException. message: null
      	at org.antlr.runtime.tree.TreeParser.recoverFromMismatchedToken(TreeParser.java:134)
      	at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
      	at org.apache.chemistry.opencmis.server.support.query.CmisQueryWalker.where_clause(CmisQueryWalker.java:1638)
      	at org.apache.chemistry.opencmis.server.support.query.CmisQueryWalker.query(CmisQueryWalker.java:276)
      	at example.Example.buildQuery(Example.java:31)
      	... 34 more
      

      This is due to incorrect tree rewriting done in the "no fulltext parse" mode.

      Attachments

        Activity

          People

            fguillaume Florent Guillaume
            fguillaume Florent Guillaume
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: