We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13405

Misleading error message when incrementing job retry without permission

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • 7.15.0
    • None

      When user with read-only permission tries to increment the number of retries of failed job from w process instance view (as depicted below), a misleading error message is returned:

      Finished : Incrementing the number of retries finished with failures.
      
      • Increment the number of retries of failed jobs
      • Error message

      The expected error message is actually included in the REST response:

      {
        "type": "AuthorizationException",
        "message": "The user with id 'michal' does not have one of the following permissions: 'RETRY_JOB' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'RETRY_JOB' permission on resource 'Failed_Job' of type 'ProcessDefinition' or 'UPDATE' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'UPDATE_INSTANCE' permission on resource 'Failed_Job' of type 'ProcessDefinition'",
        "userId": "michal",
        "resourceName": null,
        "resourceId": null,
        "permissionName": null,
        "missingAuthorizations": [
          {
            "permissionName": "RETRY_JOB",
            "resourceName": "ProcessInstance",
            "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e"
          },
          {
            "permissionName": "RETRY_JOB",
            "resourceName": "ProcessDefinition",
            "resourceId": "Failed_Job"
          },
          {
            "permissionName": "UPDATE",
            "resourceName": "ProcessInstance",
            "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e"
          },
          {
            "permissionName": "UPDATE_INSTANCE",
            "resourceName": "ProcessDefinition",
            "resourceId": "Failed_Job"
          }
        ]
      }
      

        This is the controller panel for Smart Panels app

            Loading...
            Uploaded image for project: 'camunda BPM'
            1. camunda BPM
            2. CAM-13405

            Misleading error message when incrementing job retry without permission

              • Icon: Bug Report Bug Report
              • Resolution: Unresolved
              • Icon: L3 - Default L3 - Default
              • None
              • 7.15.0
              • None

                When user with read-only permission tries to increment the number of retries of failed job from w process instance view (as depicted below), a misleading error message is returned:

                Finished : Incrementing the number of retries finished with failures.
                
                • Increment the number of retries of failed jobs
                • Error message

                The expected error message is actually included in the REST response:

                {
                  "type": "AuthorizationException",
                  "message": "The user with id 'michal' does not have one of the following permissions: 'RETRY_JOB' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'RETRY_JOB' permission on resource 'Failed_Job' of type 'ProcessDefinition' or 'UPDATE' permission on resource '5eae6b45-9eaa-11eb-8cbd-06214802035e' of type 'ProcessInstance' or 'UPDATE_INSTANCE' permission on resource 'Failed_Job' of type 'ProcessDefinition'",
                  "userId": "michal",
                  "resourceName": null,
                  "resourceId": null,
                  "permissionName": null,
                  "missingAuthorizations": [
                    {
                      "permissionName": "RETRY_JOB",
                      "resourceName": "ProcessInstance",
                      "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e"
                    },
                    {
                      "permissionName": "RETRY_JOB",
                      "resourceName": "ProcessDefinition",
                      "resourceId": "Failed_Job"
                    },
                    {
                      "permissionName": "UPDATE",
                      "resourceName": "ProcessInstance",
                      "resourceId": "5eae6b45-9eaa-11eb-8cbd-06214802035e"
                    },
                    {
                      "permissionName": "UPDATE_INSTANCE",
                      "resourceName": "ProcessDefinition",
                      "resourceId": "Failed_Job"
                    }
                  ]
                }
                

                  This is the controller panel for Smart Panels app

                        thorben.lindhauer Thorben Lindhauer
                        michal.dytko Michal Dytko
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        2 Start watching this issue

                          Created:
                          Updated:

                              thorben.lindhauer Thorben Lindhauer
                              michal.dytko Michal Dytko
                              Votes:
                              0 Vote for this issue
                              Watchers:
                              2 Start watching this issue

                                Created:
                                Updated: