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

Fix CoreSession association error after executing multi-repo Page Provider

    XMLWordPrintable

    Details

    • Release Notes Summary:
      A search using a multi-repo page provider returns all the documents.
    • Backlog priority:
      900
    • Sprint:
      nxplatform #45, nxplatform #46

      Description

      Steps to reproduce:

      1. Set up a Nuxeo instance configured with multiple (2+) repositories (see example configuration attached using two Mongo repositories & ES indices)
      2. Configure an ES-enabled Page Provider to return results from both repositories by checking the "Multi repository" flag under Advanced Configuration
      3. In Web UI, open the search view for the multi-repo PP and run

      Expected behavior: documents from both repositories populate the nuxeo-results-view after results are returned

      Actual behavior: executing search fails with following error in server log:

      Caused by: org.nuxeo.ecm.core.api.NuxeoException: The DocumentModel is not associated to an open CoreSession: DocumentModelImpl(6d7a8883-31a6-4b31-87fc-deff9b01bc49, path=/default-domain/MleWorkspace, title=mle) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getSession(DocumentModelImpl.java:366) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:439) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:449) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1215) at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1263)
      ...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: