chinwagsocial/app
Claire 1145dbd327
Improve error reporting and logging when processing remote accounts (#15605)
* Add a more descriptive PrivateNetworkAddressError exception class

* Remove unnecessary exception class to rescue clause

* Remove unnecessary include to JsonLdHelper

* Give more neutral error message when too many webfinger redirects

* Remove unnecessary guard condition

* Rework how “ActivityPub::FetchRemoteAccountService” handles errors

Add “suppress_errors” keyword argument to avoid raising errors in
ActivityPub::FetchRemoteAccountService#call (default/previous behavior).

* Rework how “ActivityPub::FetchRemoteKeyService” handles errors

Add “suppress_errors” keyword argument to avoid raising errors in
ActivityPub::FetchRemoteKeyService#call (default/previous behavior).

* Fix Webfinger::RedirectError not being a subclass of Webfinger::Error

* Add suppress_errors option to ResolveAccountService

Defaults to true (to preserve previous behavior). If set to false,
errors will be raised instead of caught, allowing the caller to be
informed of what went wrong.

* Return more precise error when failing to fetch account signing AP payloads

* Add tests

* Fixes

* Refactor error handling a bit

* Fix various issues

* Add specific error when provided Digest is not 256 bits of base64-encoded data

* Please CodeClimate

* Improve webfinger error reporting
2022-09-20 23:30:26 +02:00
..
chewy Change algorithm of tootctl search deploy to improve performance (#18463) 2022-05-22 22:16:43 +02:00
controllers Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
helpers Add admin API for managing canonical e-mail blocks (#19067) 2022-08-28 03:31:54 +02:00
javascript Bump jest from 28.1.3 to 29.0.3 (#19162) 2022-09-11 23:11:10 +09:00
lib Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
mailers Remove digest e-mails (#17985) 2022-08-25 23:38:22 +02:00
models Change "Allow trends without prior review" setting to include statuses (#17977) 2022-08-28 04:00:39 +02:00
policies Add admin API for managing canonical e-mail blocks (#19067) 2022-08-28 03:31:54 +02:00
presenters Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
serializers Fix breaking change in admin account API (#19176) 2022-09-15 15:35:06 +02:00
services Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
validators Add administrative webhooks (#18510) 2022-06-09 21:57:36 +02:00
views Change "Allow trends without prior review" setting to include statuses (#17977) 2022-08-28 04:00:39 +02:00
workers Remove digest e-mails (#17985) 2022-08-25 23:38:22 +02:00