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

Fix results selection actions made from multi-repository search results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.0
    • Fix Version/s: 2021.47, 2023.5
    • 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.
    • Backlog priority:
      800
    • Upgrade notes:
      Hide

      Added:

      • nuxeo.bulk.download.multi.repositories Framework property
      • AbsoluteDocumentRef
      • TypeAdapterHelper#createDocumentModel(AbsoluteDocumentRef docRef)
      • DocumentInputResolver#BULK_DOWNLOAD_MULTI_REPOSITORIES
      • TestDocumentInputResolvers
      • MultiRepositoryDummyOperation
      Show
      Added: nuxeo.bulk.download.multi.repositories Framework property AbsoluteDocumentRef TypeAdapterHelper#createDocumentModel(AbsoluteDocumentRef docRef) DocumentInputResolver#BULK_DOWNLOAD_MULTI_REPOSITORIES TestDocumentInputResolvers MultiRepositoryDummyOperation
    • Sprint:
      nxplatform #102, nxplatform #103
    • Story Points:
      5

      Description

      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:

      1. 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)
      2. Create several Documents in each of the multiple repositories.
      3. Run the multi repo PP and select the created Documents among the search results.
      4. 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) [?:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: