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

Fail on exceptions from Engine requests properly

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • L3 - Default
    • 3.1.0-alpha1, 3.1.0
    • None
    • backend
    • None
    • 46

    Description

      In the EngineContext class, we have a number of methods that make requests to the engine for authorizations (and other information). In the case of errors from these request, some methods catch the exception and simply return an empty response to its caller, hiding potential problems with the caller not knowing the difference between a legitimate empty response and something going wrong (the engine being down for example). We saw this in the case of https://jira.camunda.com/browse/OPT-3228, where the cleanup service treated the empty response as there being no authorizations and therefore removing all existing collection roles.

      Instead of returning empty collections, we should throw exceptions from these methods in the case of error responses and let the calling classes handle these cases accordingly.

      AT:

      • Error responses from the engine are no longer hidden by the generic catches and return of empty optionals/collections.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              joshua.windels Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce