Ted Johansson
bfad9a7170
DEV: Gracefully handle an array of IDs passed to Topics#show ( #28631 )
...
We're seeing a lot of log noise coming from unhandled exceptions stemming from requests to TopicsController#show where id is passed in as an array.
In the implementation of the method, we assume that if id is present it will be a string. This is because one of the routes to this action uses :id as a URL fragment, and so must be a string. However, there are other routes that go to this endpoint as well. Some of them don't have this URL fragment, so you can pass an arbitrary id query parameter.
Instead of a downstream unhandled exception, we raise a Discourse::InvalidParameters upfront.
2024-08-29 14:22:42 +08:00
..
2024-08-26 11:25:36 +10:00
2024-07-24 17:19:58 +10:00
2023-12-06 16:37:32 +10:00
2024-07-24 17:19:58 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2024-05-22 12:50:21 -03:00
2023-11-10 11:16:06 +00:00
2024-06-14 11:37:32 -05:00
2023-01-09 14:14:59 +00:00
2023-09-13 19:21:44 +05:30
2023-05-25 14:53:59 +02:00
2023-01-09 14:14:59 +00:00
2024-04-02 11:05:08 -04:00
2023-01-09 14:14:59 +00:00
2023-07-31 15:00:05 +01:00
2023-01-09 14:14:59 +00:00
2024-04-10 17:35:42 +03:00
2023-06-07 17:19:58 -05:00
2024-06-25 19:32:18 +08:00
2024-05-28 12:59:24 +08:00
2023-01-09 14:14:59 +00:00
2024-03-15 14:24:04 +08:00
2024-07-10 09:51:25 +02:00
2024-06-25 19:32:18 +08:00
2023-05-29 14:47:18 -07:00
2023-01-09 14:14:59 +00:00
2024-07-18 10:33:14 +10:00
2024-02-12 12:07:14 +02:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2024-06-25 19:32:18 +08:00
2024-08-08 09:21:27 +02:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2024-03-15 12:08:37 -04:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2024-06-25 19:32:18 +08:00
2024-06-28 10:09:37 +02:00
2024-02-20 09:48:09 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2024-08-27 09:33:13 -03:00
2024-06-25 19:32:18 +08:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2024-06-25 19:32:18 +08:00
2023-10-09 07:24:10 +08:00
2024-05-27 18:06:14 +02:00
2024-06-25 19:32:18 +08:00
2023-12-13 14:06:59 +00:00
2024-07-05 14:05:00 -05:00
2024-07-24 17:19:58 +10:00
2024-05-06 11:32:18 -05:00
2023-01-09 14:14:59 +00:00
2024-06-25 19:32:18 +08:00
2023-01-09 14:14:59 +00:00
2023-01-23 14:48:33 +10:00
2024-07-15 14:39:37 +08:00
2023-01-09 14:14:59 +00:00
2024-08-21 12:44:17 +01:00
2024-06-25 19:32:18 +08:00
2023-07-28 12:53:46 +01:00
2024-08-27 12:06:54 -04:00
2024-08-06 07:12:42 +08:00
2024-06-25 19:32:18 +08:00
2024-05-27 15:25:32 +10:00
2024-08-29 14:22:42 +08:00
2024-08-16 11:03:39 -03:00
2024-04-10 17:35:42 +03:00
2024-06-25 19:32:18 +08:00
2024-06-25 19:32:18 +08:00
2023-07-31 15:00:05 +01:00
2022-11-24 19:16:28 +04:00
2024-08-12 18:02:00 -03:00
2024-06-25 19:32:18 +08:00
2023-06-08 20:06:20 +03:00
2023-01-09 14:14:59 +00:00