Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21396

Escapes double quote for string value in NXQL - MarkLogic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.1
    • Fix Version/s: 8.10-HF01, 9.1
    • Component/s: Core MarkLogic

      Description

      In NXQL queries in MarkLogic connector, we don't escape double quote when building XCC request which leads to this error:

      com.marklogic.xcc.exceptions.XQueryException: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected QName_, expecting Rpar_
       [Session: user=root, cb=unittests [ContentSource: user=root, cb=unittests [provider: address=localhost/127.0.0.1:8030, pool=3/64]]]
       [Client: XCC/8.0-5, Server: XDBC/8.0-6]
      on line 5
      expr:  
      	at com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:34)
      	at com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:96)
      	at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:88)
      	at com.marklogic.xcc.impl.SessionImpl.submitRequestInternal(SessionImpl.java:437)
      	at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:432)
      	at org.nuxeo.ecm.core.storage.marklogic.MarkLogicRepository.queryAndFetch(MarkLogicRepository.java:344)
      	... 72 more
      

      Issue highlighted by FetchByPropertyTest.testEscaping

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kleturc Kevin Leturc
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: