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

Cache issue on AbstractWorkflow of OSWorkflow

    • 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

          [WORKFLOW-21] Cache issue on AbstractWorkflow of OSWorkflow

          Raphaël Franchet made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 1.5.0 [ 12888 ]
          Fix Version/s Original: 1.4.0 [ 11922 ]
          Cédric Damioli made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Cédric Damioli made changes -
          Fix Version/s New: 3.9 [ 11925 ]
          Fix Version/s New: 4.0 [ 12381 ]
          Laurence Aumeunier made changes -
          Summary Original: Cache issue on AbstractWorkflow for OSWorkflow New: Cache issue on AbstractWorkflow of OSWorkflow
          Laurence Aumeunier made changes -
          Link New: This issue Conditionne ODF-1035 [ ODF-1035 ]
          Laurence Aumeunier created issue -

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

              Created:
              Updated:
              Resolved: