-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF54, 2021.10
-
Component/s: Query & PageProvider
-
Release Notes Summary:A search using a multi-repo page provider returns all the documents.
-
Tags:
-
Backlog priority:900
-
Sprint:nxplatform #45, nxplatform #46
Steps to reproduce:
- Set up a Nuxeo instance configured with multiple (2+) repositories (see example configuration attached using two Mongo repositories & ES indices)
- Configure an ES-enabled Page Provider to return results from both repositories by checking the "Multi repository" flag under Advanced Configuration
- 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)
...