Rob Crittenden
5d3c6b761b
Return 2 when certificates are not found during requests
...
The ipa tool has nearly since epoch returned 2 for the case of
entry not found.
The certificate processing raises a separate error,
CertificateOperationsError, when something goes wrong.
This returns 1.
With the introduction of the JSON API most requests will get
a proper HTTP return code representing what went wrong. In this
case we can use 404 to determine if the request resulted in
a NotFound therefore can eventually return a 2 and be
consistent in return values.
Related: https://pagure.io/freeipa/issue/9562
Signed-off-by: Rob Crittenden <rcritten@redhat.com >
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com >
2024-04-02 23:06:43 +02:00
..
2010-12-20 17:19:53 -05:00
2022-03-11 13:37:08 -05:00
2022-03-11 13:37:08 -05:00
2023-08-21 10:49:06 +02:00
2023-03-23 10:12:44 +01:00
2023-08-30 09:13:23 -04:00
2022-03-11 13:37:08 -05:00
2022-06-09 08:35:15 +02:00
2022-06-10 09:25:27 +02:00
2024-01-24 14:54:24 +01:00
2022-06-10 09:25:27 +02:00
2021-01-21 13:51:45 +01:00
2024-03-12 13:53:11 +01:00
2019-10-21 18:01:32 +11:00
2022-09-29 14:23:44 +02:00
2017-06-15 13:51:06 +02:00
2024-04-02 23:06:43 +02:00
2019-03-28 00:21:00 +01:00
2024-01-09 08:40:47 +01:00
2016-06-03 09:00:34 +02:00
2022-06-10 09:25:27 +02:00
2016-10-12 10:38:52 +02:00
2016-10-12 10:38:52 +02:00
2024-01-09 08:40:47 +01:00
2024-01-12 18:41:01 -05:00
2020-03-31 09:21:37 +03:00
2023-08-01 13:41:59 +02:00
2024-03-27 18:04:26 +01:00
2024-01-09 08:40:47 +01:00
2023-06-01 08:20:37 +02:00
2020-09-23 14:49:15 +02:00
2023-06-01 08:20:37 +02:00
2022-06-14 15:56:21 +03:00
2020-02-26 13:42:10 -05:00
2022-06-10 09:25:27 +02:00
2016-12-02 13:00:06 +01:00
2018-01-09 07:53:28 +01:00
2016-06-03 09:00:34 +02:00
2016-06-03 09:00:34 +02:00
2021-01-21 13:51:45 +01:00
2023-06-01 08:20:37 +02:00
2021-03-29 10:07:38 +03:00
2022-07-15 16:59:15 +02:00
2016-06-03 09:00:34 +02:00
2019-03-28 17:57:58 +01:00
2022-03-11 13:37:08 -05:00
2023-10-16 13:23:20 -04:00
2019-03-14 09:39:55 +01:00
2018-11-13 12:40:44 +01:00
2018-07-11 10:11:38 +02:00
2020-06-08 12:39:34 -04:00
2023-01-10 08:30:58 +01:00
2019-10-21 18:01:32 +11:00
2022-06-10 09:25:27 +02:00
2023-06-22 14:45:59 -04:00
2020-04-27 10:15:58 +02:00
2019-03-28 17:57:58 +01:00
2024-01-24 14:54:24 +01:00
2020-05-14 21:47:17 +03:00
2018-06-21 18:42:05 +02:00
2023-07-19 16:59:25 -04:00
2021-09-02 20:51:56 +02:00
2016-06-03 09:00:34 +02:00
2021-02-15 09:59:41 +02:00
2016-10-12 10:38:52 +02:00
2023-01-10 08:30:58 +01:00
2019-03-25 09:48:31 +01:00
2024-01-09 08:40:47 +01:00
2023-08-01 13:47:56 +02:00
2024-01-30 10:18:02 -05:00
2020-06-30 11:47:29 +02:00
2017-07-07 14:44:42 +02:00
2018-07-17 15:32:28 -04:00