Actions
Bug #24930
closedhammer job-invocation output returns ISE on providing invalid invocation id
Difficulty:
Triaged:
No
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1628561
Description of problem:
when passing wrong-non-existing job-invocation id to the `output` subcommand (together with a valid host parameter), the server returns ISE (err 500) - NoMethodError: undefined method `task' for nil:NilClass
instead of a proper 404 response code
How reproducible:
always
Steps to Reproduce:
1. have some valid host (Say: foo)
2. hammer job-invocation output --id <invalid-id> --host foo
Actual results:
internal server error returned
Expected results:
404 status codereturned from server
Additional info:
Actions