catstodon/app/services/activitypub
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
..
fetch_featured_collection_service.rb Fix ArgumentError when processing pinned posts from Friendica (#18260) 2022-05-02 19:34:39 +02:00
fetch_remote_account_service.rb Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
fetch_remote_key_service.rb Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
fetch_remote_poll_service.rb Add support for editing for published statuses (#16697) 2022-01-19 22:37:27 +01:00
fetch_remote_status_service.rb Fix NoMethodError when resolving a link that redirects to a local post (#18314) 2022-05-17 14:52:26 +02:00
fetch_replies_service.rb Fix poll update handler calling method was that was not available (#10246) 2019-03-12 22:58:59 +01:00
prepare_followers_synchronization_service.rb Add follower synchronization mechanism (#14510) 2020-10-21 18:04:09 +02:00
process_account_service.rb Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
process_collection_service.rb Fix compacted JSON-LD possibly causing compatibility issues on forwarding (#17428) 2022-02-03 14:09:04 +01:00
process_status_update_service.rb Refactor how Redis locks are created (#18400) 2022-05-13 00:02:35 +02:00
synchronize_followers_service.rb Optimize map { ... }.compact calls (#15513) 2021-01-10 00:32:01 +01:00