Lauryn Menard
ebfe9637c8
subscribe-unsubscribe: Improve error response for unexpected users.
...
Updates the API error response when there is an unknown or
deactivated user in the `principals` parameter for either the
`/api/subscribe` or `/api/unsubscribe` endpoints. We now use
the `access_user_by_email` and `access_user_by_id` code paths,
which return an HTTP response of 400 and a "BAD_REQUEST" code.
Previously, an HTTP response of 403 was returned with a special
"UNAUTHORIZED_PRINCIPAL" code in the error response. This code
was not documented in the API documentation and is removed as
a potential JsonableError code with these changes.
Fixes #26593 .
2023-08-31 13:48:39 -07:00
..
2023-08-29 18:16:11 -07:00
2023-03-02 16:36:19 -08:00
2023-08-16 17:18:14 -07:00
2023-08-07 17:23:55 -07:00
2023-08-16 15:37:37 -07:00
2022-11-17 16:52:00 -08:00
2023-02-04 16:34:55 -08:00
2023-08-29 17:09:43 -07:00
2023-02-10 17:35:49 -08:00
2023-08-11 16:43:12 -07:00
2023-08-06 13:47:38 -07:00
2023-08-11 11:09:34 -07:00
2023-08-07 11:40:44 -07:00
2023-06-23 11:24:13 -07:00
2023-02-10 17:35:49 -08:00
2023-04-10 08:38:09 -07:00
2023-08-17 17:05:34 -07:00
2023-08-30 11:54:28 -07:00
2023-08-10 18:13:43 -07:00
2023-08-10 17:41:49 -07:00
2023-08-16 14:32:20 -07:00
2023-08-25 12:56:36 -07:00
2023-08-10 18:13:43 -07:00
2023-06-23 10:45:40 -07:00
2022-11-17 16:52:00 -08:00
2023-07-23 15:20:53 -07:00
2023-08-11 16:43:12 -07:00
2023-08-23 16:36:44 -07:00
2023-08-18 16:25:48 -07:00
2023-08-17 17:05:34 -07:00
2023-02-02 10:40:13 -08:00
2023-07-17 09:23:01 -07:00
2022-11-03 12:10:15 -07:00
2023-08-07 17:23:55 -07:00
2023-08-23 11:38:32 -07:00
2023-08-09 15:49:49 -07:00
2023-08-23 16:18:15 -07:00
2023-06-23 11:24:13 -07:00
2023-08-11 11:09:34 -07:00
2023-07-24 11:02:14 -07:00
2023-08-25 14:10:27 -04:00
2023-08-15 17:51:03 -07:00
2023-08-16 15:37:37 -07:00
2023-08-10 17:41:49 -07:00
2023-08-16 11:31:56 -07:00
2022-11-17 16:52:00 -08:00
2023-08-10 17:41:49 -07:00
2023-06-20 16:17:55 -07:00
2023-08-18 16:51:46 -07:00
2023-06-23 11:24:13 -07:00
2023-08-16 17:18:14 -07:00
2023-03-13 12:28:26 -07:00
2023-08-10 17:41:49 -07:00
2023-08-15 09:52:55 -07:00
2023-04-08 16:27:55 -07:00
2023-08-10 17:41:49 -07:00
2023-08-10 18:13:43 -07:00
2023-03-05 14:46:28 -08:00
2023-04-26 14:26:47 -07:00
2023-08-30 11:56:52 -07:00
2023-08-10 17:41:49 -07:00
2023-06-12 12:55:27 -07:00
2023-07-17 09:35:53 -07:00
2023-02-10 15:39:57 -08:00
2023-06-28 10:23:47 -07:00
2023-08-16 17:18:14 -07:00
2023-08-16 17:18:14 -07:00
2023-07-24 17:40:59 -07:00
2023-08-18 16:25:48 -07:00
2023-05-09 13:16:28 -07:00
2023-08-06 13:40:02 -07:00
2023-06-23 11:24:13 -07:00
2023-08-23 11:38:32 -07:00
2023-06-20 16:17:55 -07:00
2023-02-27 11:59:48 -08:00
2023-08-10 17:41:49 -07:00
2023-02-02 10:40:13 -08:00
2023-06-12 12:55:27 -07:00
2023-08-23 11:38:32 -07:00
2023-08-07 17:23:55 -07:00
2023-08-07 17:23:55 -07:00
2023-02-14 17:17:06 -05:00
2023-07-06 16:35:46 -07:00
2023-08-31 13:48:39 -07:00
2023-08-31 11:55:28 -07:00
2023-06-12 12:55:27 -07:00
2023-05-18 11:52:22 -07:00
2022-11-17 16:52:00 -08:00
2023-01-04 16:25:07 -08:00
2023-03-02 16:36:19 -08:00
2023-07-12 07:09:03 -07:00
2023-04-18 12:29:33 -07:00
2023-08-02 17:41:41 -07:00
2023-08-02 17:41:41 -07:00
2023-08-06 13:40:02 -07:00
2023-07-02 16:18:24 -07:00
2023-08-24 17:21:08 -07:00
2023-04-07 09:45:26 -07:00
2023-08-02 17:41:41 -07:00
2023-08-25 12:56:36 -07:00
2023-08-11 16:43:12 -07:00
2023-06-23 11:24:13 -07:00