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

Running workflows not displayed for user not involved but with permissions

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The current user can now see all the running workflows info bar in Web UI.
    • Tags:
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      The current user can now see all the running workflows info bar in Web UI.

      Show
      The current user can now see all the running workflows info bar in Web UI.
    • Sprint:
      nxGang Sprint 11.1.27, nxGang Sprint 11.1.28
    • Story Points:
      5
    • Team:
      GANG

      Description

      1. install Nuxeo with Web UI and JSF UI
      2. login as Administrator
      3. create a user Robert having the group members
      4. create a document
      5. start a workflow serial or parallel
      6. the running workflow is now visible (see adminRunningWorkflows.png)
      7. login as Robert
      8. go to the created document
      9. observe the running workflow is not shown (see userRobertWebUInoWorkflowShown.png)
      10. switch to JSF UI
      11. go to the same document
      12. observe the running workflow is shown (see userRobertJSFCanSeeWorkflows.png

      Using the runningWorkflow enricher, it seems the REST API does not return the workflow for the user either.

      As Administrator:

      {
         "repository" : "default",
         "facets" : [
            "Versionable",
            "Publishable",
            "Commentable",
            "HasRelatedText"
         ],
         "type" : "File",
         "isVersion" : false,
         "changeToken" : "1-0",
         "entity-type" : "document",
         "contextParameters" : {
            "runningWorkflows" : [
               {
                  "id" : "145ccb79-8e7a-4c0f-b0ee-caad7e8a5296",
                  "name" : "SerialDocumentReview",
                  "state" : "running",
                  "entity-type" : "workflow",
                  "graphResource" : "http://localhost:8080/nuxeo/api/v1/workflow/145ccb79-8e7a-4c0f-b0ee-caad7e8a5296/graph",
                  "workflowModelName" : "SerialDocumentReview",
                  "attachedDocumentIds" : [
                     {
                        "id" : "55cc1733-28bf-45f4-8d93-ef5ba352901a"
                     }
                  ],
                  "variables" : {
                     "initiatorComment" : null,
                     "index" : 0,
                     "validationOrReview" : "validation",
                     "participants" : []
                  },
                  "title" : "wf.serialDocumentReview.SerialDocumentReview",
                  "initiator" : "Administrator"
               }
            ]
         },
         "isCheckedOut" : true,
         "state" : "project",
         "isProxy" : false,
         "path" : "/default-domain/workspaces/testWorkspaceSUPNXP22806/zerzer",
         "uid" : "55cc1733-28bf-45f4-8d93-ef5ba352901a",
         "title" : "zerzer",
         "lastModified" : "2018-04-18T11:49:58.000Z",
         "parentRef" : "9d668c2d-e724-42d4-ab70-c4f7c8954857"
      }
      

      As robert:

      {
         "contextParameters" : {
            "runningWorkflows" : []
         },
         "isProxy" : false,
         "lastModified" : "2018-04-18T11:49:58.000Z",
         "type" : "File",
         "isVersion" : false,
         "uid" : "55cc1733-28bf-45f4-8d93-ef5ba352901a",
         "facets" : [
            "Versionable",
            "Publishable",
            "Commentable",
            "HasRelatedText"
         ],
         "state" : "project",
         "parentRef" : "9d668c2d-e724-42d4-ab70-c4f7c8954857",
         "path" : "/default-domain/workspaces/testWorkspaceSUPNXP22806/zerzer",
         "isCheckedOut" : true,
         "title" : "zerzer",
         "repository" : "default",
         "changeToken" : "1-0",
         "entity-type" : "document"
      }
      

      This maybe means both REST API and Web UI have to be updated to get this feature.

      After investigation from the Core and REST teams, the JSF UI uses an unrestricted search whereas the enricher uses the user, thus the difference in results. (see NXP-8451 and NXP-9993)
      This also means that if web ui has already the feature in place for the workflow initiator then maybe the enricher needs to be updated. (remains to be double-checked)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h

                    PagerDuty

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