-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 11.1-SNAPSHOT
-
Fix Version/s: 9.10-HF42, 10.10-HF23, 11.1, 2021.0
- install Nuxeo with Web UI and JSF UI
- login as Administrator
- create a user Robert having the group members
- create a document
- start a workflow serial or parallel
- the running workflow is now visible (see adminRunningWorkflows.png)
- login as Robert
- go to the created document
- observe the running workflow is not shown (see userRobertWebUInoWorkflowShown.png)
- switch to JSF UI
- go to the same document
- 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)