Uploaded image for project: 'Workflow'
  1. Workflow
  2. WORKFLOW-21

Cache issue on AbstractWorkflow of OSWorkflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.5.0, 3.9, 4.0.0
    • None
    • None

      This issue is true for all workflow plugins using OSWorkflow 2.8.0 version.

      AbstractWorkflow has a local thread cache into which result of passesConditions is stored for each requested workflow actions.

      The cache is clear only when doing workflow action for real, in transitionWorkflow function.
      If an action X is invalid for a content C1, transitionWorkflow is not executed and the cache is not clear. So the action X is stored as invalid in cache.

      Now if the doAction is called with same action X and same thread on a other content C2, the cache will answer that action is invalid, trusting its cache, even if the action X was valid for this content.

      This issue can be demonstrated during the execution of the same workflow action on a large number of contents in a same thread

            cedric Cédric Damioli
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: