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

Fix assignment/removal of access rights in workflow

    Details

    • Release Notes Summary:
      Permission changes are done without a document modification.
    • Tags:
    • Backlog priority:
      800
    • Sprint:
      nxcore 11.1.10
    • Story Points:
      1

      Description

      When a task is assigned, temporary ACLs are applied to the document to grant access the task actor. A call to session.saveDocument() is done, this is unnecessary, and it generates inappropriate beforeDocumentModification, documentModified, ... events. This inadvertently calls customer-defined event handlers, event listeners, ..., and can lead to unexpected behaviors.

      I found 3 instances of this faulty implementation here:

      But other instances can exist.

      See the history of a document below, when a task is assigned or completed (standard workflow Serial document review), the Rights assigned entries are immediately followed a Modification entry (the document is actually updated):

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.