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

Cannot build query of provider without a search document model

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Automation, Content Views
    • Tags:
    • Sprint:
      nxNag Sprint 7.1-2
    • Story Points:
      3

      Description

      When invoking the Document.PageProvider operation with the name of a page provider that relies on a search document model an exception is thrown stating the the query cannot be built without a search document model.

      curl -u Administrator:Administrator -H 'Content-Type: application/json+nxrequest' -d '{"params":{"providerName":"document_content","queryParams":["12e630e7-3ce7-4a7d-8342-e30858f4bfb7"]}}' http://127.0.0.1:8080/nuxeo/site/automation/Document.PageProvider
      

      produces:

      Caused by: org.nuxeo.ecm.core.api.ClientException: Cannot build query of provider 'document_content': no search document model is set
      	at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.buildQuery(CoreQueryDocumentPageProvider.java:255)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: