Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-6200

Definition Selection fails resolving tenants on multi-engine scenario

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.8.3, 3.9.0-preview-1
    • 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0
    • backend
    • None
    • Not defined

      Brief summary of the bug. What is it ? Where is it ?

      Scenario:
      User exists in engine 1
      User has Optimize application authorization in engine 1
      No tenants exist on engine1
      A process with key "testProcess" is deployed to engine 1 with no tenant set

      User exists in engine 2
      User has Optimize application authorization in engine 2
      User has all process definition authorization in engine 2
      No tenants exist on engine2
      A process with key "testProcess" is deployed to engine 2 with no tenant set

      Given the following Optimize config:

      engines:
        'camunda-bpm-1':
          name: default
          defaultTenant:
            id: cambpm1
            name: cambpm1
          rest: '${OPTIMIZE_CAMUNDABPM_REST_URL_1:http://localhost:8080/engine-rest}'
          importEnabled: true
          authentication:
            enabled: false
            password: ''
            user: ''
          webapps:
            endpoint: '${OPTIMIZE_CAMUNDABPM_WEBAPPS_URL:http://localhost:8080/camunda}'
            enabled: true
        'camunda-bpm-2':
          name: default
          defaultTenant:
            id: cambpm2
            name: cambpm2
          rest: '${OPTIMIZE_CAMUNDABPM_REST_URL_2:http://localhost:8081/engine-rest}'
          importEnabled: true
          authentication:
            enabled: false
            password: ''
            user: ''
          webapps:
            endpoint: '${OPTIMIZE_CAMUNDABPM_WEBAPPS_URL:http://localhost:8081/camunda}' 

      Steps to reproduce:

      1. Login to Optimize with User
      2. Try to create a report and select the definition `testProcess`

      Actual result:

      3. An authorization error is thrown:

      Expected result:

      As the user has access to the definition on engine-2, the process selection should succeed, using the default tenant for engine-2

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: