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

HTTP error code should be 404 when process instance is not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

      Some REST kogito API expects processInstanceId as parameter. When a not existing processInstanceId is specified, a 204 http error code is returned (rather than 404, which is the proper one for a not found issue) 

      Reason is that generated code is returning null rather than throwing ProcessInstanceNotFoundException or WorkItemHandlerNotFoundException. 

      Besides modifying code generation to throw these exceptions, we need to ensure proper mappers are configured for JAX/RS (Quarkus) and Spring MVC (Spring boot)  and that test that are not expecting a 204 are changed accordingly. 

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

                Created:
                Updated:
                Resolved: