mastodon/app/controllers
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
..
activitypub
admin Add ability to select all accounts matching search for batch actions (#19053) 2022-08-25 23:33:34 +02:00
api Fix REST API sometimes returning HTML on error (#19135) 2022-09-08 09:44:36 +02:00
auth Add ability to block sign-ups from IP (#19037) 2022-08-24 19:00:37 +02:00
concerns Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
disputes
filters Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
oauth
settings Remove digest e-mails (#17985) 2022-08-25 23:38:22 +02:00
well_known
about_controller.rb
account_follow_controller.rb
account_unfollow_controller.rb
accounts_controller.rb
application_controller.rb Add customizable user roles (#18641) 2022-07-05 02:41:40 +02:00
authorize_interactions_controller.rb
custom_css_controller.rb Add customizable user roles (#18641) 2022-07-05 02:41:40 +02:00
directories_controller.rb
emojis_controller.rb
filters_controller.rb Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
follower_accounts_controller.rb
following_accounts_controller.rb
health_controller.rb
home_controller.rb
instance_actors_controller.rb
intents_controller.rb
invites_controller.rb
manifests_controller.rb
media_controller.rb
media_proxy_controller.rb
public_timelines_controller.rb
relationships_controller.rb
remote_follow_controller.rb
remote_interaction_controller.rb
shares_controller.rb
statuses_cleanup_controller.rb
statuses_controller.rb
tags_controller.rb