-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2021.0
-
Component/s: Automation, Web UI
-
Release Notes Summary:The "nuxeo.bulk.download.multi.repositories" nuxeo.conf property alllows to call the "Download All as Zip" action on a list of documents from multiple repositories.
-
Epic Link:
-
Tags:
-
Backlog priority:800
-
Upgrade notes:
-
Sprint:nxplatform #102, nxplatform #103
-
Story Points:5
When attempting to execute automations/scripts on several Documents across multiple repositories (using a multi repo-enabled Page Provider), DocumentNotFoundExceptions are reported in the logging and an error toast is displayed.
Steps to reproduce:
- Set up a Nuxeo instance in a multiple repositories config with a multi repo-enabled Page Provider (see linked ticket for a minimal environment that reproduces the behavior)
- Create several Documents in each of the multiple repositories.
- Run the multi repo PP and select the created Documents among the search results.
- Attempt to launch one of the actions present in the RESULTS_SELECTION_ACTIONS slots at the top of the browser.
Expected result: action is successfully performed.
Actual result: an error toast is displayed to the user, and the following error stack trace is printed in the logging:
2022-12-02T22:42:44,967 ERROR [AsyncOperationAdapter] An error occurred during execution: c855c66e-5cba-45d7-8f33-f1144d52802e org.nuxeo.ecm.core.api.DocumentNotFoundException: 01cafd8a-c1c3-4e60-ba45-9ffd91f75520 at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocumentByUUID(DBSSession.java:402) ~[nuxeo-core-storage-dbs-2021.29.7.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:356) ~[nuxeo-core-2021.29.7.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:999) ~[nuxeo-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.adapters.helper.TypeAdapterHelper.createDocumentModel(TypeAdapterHelper.java:110) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.adapters.CollectionToDocModelList.getAdaptedValue(CollectionToDocModelList.java:48) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.getAdaptedValue(OperationServiceImpl.java:425) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:173) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:147) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:212) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:331) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:296) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:209) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:331) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:296) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.29.7.jar:?] at org.nuxeo.ecm.automation.server.jaxrs.adapters.AsyncOperationAdapter.lambda$doPost$0(AsyncOperationAdapter.java:206) ~[nuxeo-automation-server-2021.29.7.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$4(TransactionHelper.java:642) ~[nuxeo-runtime-jtajca-2021.29.7.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:675) ~[nuxeo-runtime-jtajca-2021.29.7.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:642) ~[nuxeo-runtime-jtajca-2021.29.7.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:630) ~[nuxeo-runtime-jtajca-2021.29.7.jar:?] at org.nuxeo.ecm.automation.server.jaxrs.adapters.AsyncOperationAdapter.lambda$doPost$1(AsyncOperationAdapter.java:201) ~[nuxeo-automation-server-2021.29.7.jar:?] at java.lang.Thread.run(Thread.java:829) [?:?]
- is related to
-
NXP-14284 Make Elasticsearch integration support multi repositories
- Resolved