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

REST API: Misleading error messages

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: engine
    • Labels:

      Description

      Catching ProcessEngineException in the REST API and interpreting it as a single error cause that may not be correct is a bad pattern. Users may be mislead to the wrong cause of an error.

      Example: https://github.com/camunda/camunda-bpm-platform/blob/7.8.0/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/sub/history/impl/HistoricProcessInstanceResourceImpl.java#L56

      Check all REST API resources for this anti-pattern.

      Related forum post: https://forum.camunda.org/t/historic-process-instance-does-not-exist-rest-request-exception/5591

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            thorben.lindhauer Thorben Lindhauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: