microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 199 forks source link

Wrong error message when job doesn't exist #3276

Closed tevoinea closed 1 year ago

tevoinea commented 1 year ago

Information

Provide detailed reproduction steps (if any)

  1. `onefuzz jobs get {invalid job id}
.\onefuzz-cli-8.4.0.exe jobs get 8b0a2196-fb86-6a47-4412-4df9c249485d
ERROR:cli:command failed: request did not succeed (400: INVALID_TASK): no such job

It says INVALID_TASK when the job doesn't exist.

Expected result

What is the expected result of the above steps?

It should say INVALID_JOB

AB#160428

kananb commented 1 year ago

https://github.com/microsoft/onefuzz/pull/3318