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

Saving an NXQL query with quotes in the Quick Search gadget crashes

    XMLWordPrintable

    Details

      Description

      In the Quick search gadget, trying to save an NXQL query such as Select * from Document where dc:creator='Administrator' crashes (same with double quotes):

      18:36:19,930 WARN  [CoreQueryDocumentPageProvider] Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Lexical Error: Illegal character <&> at offset 40 in query: Select * from Document where dc:creator=&#39;Administrator&#39;
      org.nuxeo.ecm.core.api.ClientException: Failed to execute query: org.nuxeo.ecm.core.query.QueryParseException: Lexical Error: Illegal character <&> at offset 40 in query: Select * from Document where dc:creator=&#39;Administrator&#39;
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1474)
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1384)
      	at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:127)
      	at $Proxy28.query(Unknown Source)
      	at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.getCurrentPage(CoreQueryDocumentPageProvider.java:93)
      	at org.nuxeo.ecm.automation.core.operations.services.PaginableDocumentModelListImpl.<init>(PaginableDocumentModelListImpl.java:34)
      	at org.nuxeo.ecm.automation.core.operations.services.DocumentPageProviderOperation.run(DocumentPageProviderOperation.java:136)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h