Uploaded image for project: 'Magnolia Workflow Module'
  1. Magnolia Workflow Module
  2. MGNLWORKFLOW-404

viewMapping not set correctly when upgrading from 6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 6.0.4
    • Pages Integration
    • None

    Description

      In the case you had the module magnolia-module-workflow-pages-6.0 installed previously and then upgraded the viewMapping for the new pages app is not installed correctly.

      Since the module is technically "installed" that means the extra install tasks never run which were added in 6.0.1.

      When trying to "approve and publish" you hit the following exception:

      2021-06-18 03:06:57,562 ERROR agnolia.ui.framework.app.AppInstanceControllerImpl: Sub-app [detail] of app [tasks-app] failed to start
      info.magnolia.config.registry.Registry$NoSuchDefinitionException: pages:publish
      at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:127) ~[magnolia-configuration-6.2.6.jar:?]
      at info.magnolia.ui.admincentral.shellapp.pulse.item.registry.ItemViewDefinitionRegistry.get(ItemViewDefinitionRegistry.java:82) ~[magnolia-ui-admincentral-6.2.6.jar:?]
      at info.magnolia.task.app.view.detail.TaskDetailSubApp.start(TaskDetailSubApp.java:135) ~[magnolia-tasks-app-6.2.6.jar:?]
      at info.magnolia.task.app.view.detail.TaskDetailSubApp.start(TaskDetailSubApp.java:77) ~[magnolia-tasks-app-6.2.6.jar:?]
      at info.magnolia.ui.framework.app.AppInstanceControllerImpl.startSubApp(AppInstanceControllerImpl.java:418) ~[magnolia-ui-framework-6.2.6.jar:?]
      at info.magnolia.ui.framework.app.AppInstanceControllerImpl.openSubApp(AppInstanceControllerImpl.java:363) ~[magnolia-ui-framework-6.2.6.jar:?]
      at info.magnolia.ui.framework.app.BaseApp.lambda$openSubApp$7(BaseApp.java:138) ~[magnolia-ui-framework-6.2.6.jar:?]
      at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_181]
      

      Workaround

      • Find the property: /modules/workflow-jbpm/tasks/publish/viewMapping@website
      • Update the value: pages-app:publish
      • Find the property: /modules/workflow-jbpm/tasks/unpublish/viewMapping@website
      • Update the value: pages-app:unpublish

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD