Werk #15432: agent: GET non existent agent hash now returns a 404 response

Component REST API
Title agent: GET non existent agent hash now returns a 404 response
Date Mar 2, 2023
Checkmk Version 2.3.0b1 2.2.0b1 2.1.0p24
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Affected Editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p24 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This werk is to fix an issue when requesting an agent that doesn't exist via the following endpoints

GET /objects/agent/non-existing-hash GET /domain-types/agent/actions/download_by_hash/invoke

Previously, both of these endpoints would respond with a 500 internal server error, but now we conform to our other endpoints and we return a problem response with an appropriate message.

To the list of all Werks