Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-2063

Workflow REST API: task assignee user can delegate successfully the task to any user even to the owner

    Details

    • Work Funnel:
      Feature
    • Template:
    • Bug Priority:
      Category 3

      Description

      Steps to reproduce:
      1. Create a task with owner user and assign it to an assignee user.
      2. Authenticate with task assignee user and perform rest-api call:

      PUT /tasks/taskId?select=state,assignee

      with following input:

      {"state":"delegated",
       "assignee":"ownerUser"}

      Actual result:
      Actual response is successful (200).

      Expected result:
      As per documentation: "To delegate a task, the authenticated user must be the assignee of the task and the assignee must be different from the owner." See http://docs.alfresco.com/5.0/pra/1/concepts/act-tasks-put-task.html
      Thus, since the authenticated user is the assignee of the task and the new assignee is the owner, the call should fail maybe with bad request(400).

      Note:
      The task assignee can also delegate a task cu an inexistent user - response status code is 200.

      Failed tests: tas-rest-api project:
      UpdateTaskCoreTestsBulk2.java#taskAssigneeCannotDelegateTaskToTaskOwner
      UpdateTaskCoreTestsBulk2.java#taskAssigneeCannotDelegateTaskToInvalidAssignee

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                caxinte Cristina Axinte [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel