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

Misleading error message when incrementing job retry without permission

    XMLWordPrintable

Details

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

    Description

      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"
          }
        ]
      }
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:

                Salesforce