Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-8925

Task Management API. Wrong error code when task cannot be found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.37.0.Final
    • None
    • Core Engine
    • None
    • False
    • None
    • False
    • Hide
      Resulting error message after fix is
      {
          "message": "Cannot find work item 78b268dd-052d-45e3-8b70-2b80172225ea",
          "taskId": "78b268dd-052d-45e3-8b70-2b80172225ea"
      }
      Show
      Resulting error message after fix is {     "message": "Cannot find work item 78b268dd-052d-45e3-8b70-2b80172225ea",     "taskId": "78b268dd-052d-45e3-8b70-2b80172225ea" }
    • ---
    • ---
    • 2023 Week 12-14 (from Mar 20)

    Description

      When a task id cannot be found, a 500 error code is returned, while it should be 404.
      The reason is that WorkItemNotFoundException, unlike ProcessInstanceIdNotFoundException, is not properly mapped in the Rest exception handler.

      Attachments

        Activity

          People

            ftirados Francisco Javier Tirado Sarti
            ftirados Francisco Javier Tirado Sarti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: