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

documentNotFoundException - enricher: runnableWorkflows exception when browsing with multirepo configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.27
    • Fix Version/s: 2023.0, 2021.29
    • Component/s: Workflow
    • Release Notes Summary:
      Runnable Wokflow models can now be retrieved within a multi repository deployment
    • Backlog priority:
      700
    • Sprint:
      nxplatform #74
    • Story Points:
      5

      Description

      Steps to reproduce
      The below steps were only tested with mongodb, not a SQL DB

      1. Set up multirepo configuration (at least 2 repos)
      2. Start your instance
      3. Navigate to 2nd repo
      4. Do a tail on the server.log file
      5. Click Domain-> Workspaces
      6. Notice warning in the logs

      See a warning similar to the following

      2022-10-24T15:17:31,495 WARN  [http-nio-0.0.0.0-8080-exec-11] [org.nuxeo.ecm.core.io.marshallers.json.enrichers.AbstractJsonEnricher] The following error occured with enricher: runnableWorkflows
      org.nuxeo.ecm.core.api.DocumentNotFoundException: db923ea6-1469-423a-8aed-f9da952abe85
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.getDocumentByUUID(DBSSession.java:402) ~[nuxeo-core-storage-dbs-2021.27.13.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:356) ~[nuxeo-core-2021.27.13.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:999) ~[nuxeo-core-2021.27.13.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.getRouteModelWithId(DocumentRoutingServiceImpl.java:789) ~[nuxeo-routing-core-2021.24.3.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.canCreateInstance(DocumentRoutingServiceImpl.java:1413) ~[nuxeo-routing-core-2021.24.3.jar:?]
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.lambda$getRunnableWorkflows$16(DocumentRoutingServiceImpl.java:1447) ~[nuxeo-routing-core-2021.24.3.jar:?]
      

      The above document ID corresponds to a workflow document (Parallel Workflow) that exists in the 1st repository (default). Nuxeo should not be looking for in a different repo.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: