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

NullPointerException when cancelling job which doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • 0.11.0
    • 0.7.1
    • Job Service
    • None
    • Hide

      Start Jobs service, for example by 'mvn clean compile quarkus:dev ' from Jobs repository.
      Execute the delete request: 'curl -X DELETE "http://localhost:8080/jobs/not-existing-job" -H "accept: application/json"'
      =>
      Error is shown in server log, HTTP 500 is returned.

      Show
      Start Jobs service, for example by 'mvn clean compile quarkus:dev ' from Jobs repository. Execute the delete request: 'curl -X DELETE "http://localhost:8080/jobs/not-existing-job" -H "accept: application/json"' => Error is shown in server log, HTTP 500 is returned.
    • 2020 Week 13-15 (from Mar 23), 2020 Week 16-18 (from Apr 13), 2020 Week 22-24 (from May 25), 2020 Week 25-27 (from Jun 15)

      When user tries to cancel job with id which doesn't exist, then NPE is thrown in server log and HTTP 500 is returned.
      Expected behaviour would be that HTTP 404 is returned with meaningful message.

            tdolphin-1 Tiago Dolphine
            ksuta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: