Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13527

Some workflow methods trigger incorrectly a workflowSession save

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 14.3.0
    • None
    • None
    • Quasar
    • Puma Sprint 237

    Description

      Workflow methods like

      WorkflowContextAware#getWorkflowContext
      DocumentWorkflow#hints
      DocumentWorkflow#getBranch
      DocumentWorkflow#listBranches
      etc
      

      are non-state-modifying workflow methods which never should result in a workflow session save. The workflow methods are already marked correctly through @WorkflowAction, for example:

      @WorkflowAction(loggable = false, mutates = false)
          Set<String> listBranches() throws WorkflowException;
      

      Only in WorkflowManagerImpl.WorkflowInvocationHandler#invoke only hard-coded 'hints' method is tested to avoid a session save.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: