Chemistry
  1. Chemistry
  2. CMIS-456

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: OpenCMIS 0.5.0
    • Fix Version/s: OpenCMIS 0.6.0
    • Component/s: opencmis-server
    • Labels:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Florent Guillaume
            Reporter:
            Florent Guillaume
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development