mastodon/spec/services
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 Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
account_search_service_spec.rb
account_statuses_cleanup_service_spec.rb Add feature to automatically delete old toots (#16529) 2021-08-09 23:11:50 +02:00
after_block_domain_from_account_service_spec.rb
after_block_service_spec.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
app_sign_up_service_spec.rb Add ability to block sign-ups from IP (#19037) 2022-08-24 19:00:37 +02:00
authorize_follow_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
batched_remove_status_service_spec.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
block_domain_service_spec.rb Fix various typos (#17621) 2022-02-22 20:14:17 +01:00
block_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
bootstrap_timeline_service_spec.rb Add tests for BootstrapTimelineService (#16476) 2021-07-07 21:12:43 +02:00
clear_domain_media_service_spec.rb Fix various typos (#17621) 2022-02-22 20:14:17 +01:00
delete_account_service_spec.rb Fix test-related issues (#17888) 2022-03-28 12:43:58 +02:00
fan_out_on_write_service_spec.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
favourite_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
fetch_link_card_service_spec.rb Add support for structured data and more OpenGraph tags to link cards (#16938) 2021-11-05 23:23:05 +01:00
fetch_oembed_service_spec.rb Fix some link previews being incorrectly generated from other prior links (#16885) 2021-10-21 20:39:35 +02:00
fetch_remote_status_service_spec.rb Fix NoMethodError when resolving a link that redirects to a local post (#18314) 2022-05-17 14:52:26 +02:00
fetch_resource_service_spec.rb
follow_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
import_service_spec.rb Add import/export feature for bookmarks (#14956) 2020-11-19 17:48:13 +01:00
mute_service_spec.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
notify_service_spec.rb Fix test-related issues (#17888) 2022-03-28 12:43:58 +02:00
post_status_service_spec.rb Fix scheduled statuses decreasing statuses counts (#16791) 2021-10-14 19:59:21 +02:00
precompute_feed_service_spec.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
process_mentions_service_spec.rb Add support for editing for published statuses (#16697) 2022-01-19 22:37:27 +01:00
purge_domain_service_spec.rb Add ability to purge undeliverable domains from admin interface (#16686) 2021-12-17 23:01:21 +01:00
reblog_service_spec.rb Add test for reblog race condition fix (#17732) 2022-03-10 00:11:49 +01:00
reject_follow_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
remove_from_follwers_service_spec.rb Add remove from followers api (#16864) 2021-10-18 12:02:35 +02:00
remove_status_service_spec.rb Fix Undo Announce sometimes inlining the originally Announced status (#17516) 2022-02-11 14:52:07 +01:00
report_service_spec.rb Fix crash when a remote Flag activity mentions a private post (#18760) 2022-07-04 11:08:30 +02:00
resolve_account_service_spec.rb Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
resolve_url_service_spec.rb Fix NoMethodError when resolving a link that redirects to a local post (#18314) 2022-05-17 14:52:26 +02:00
search_service_spec.rb
suspend_account_service_spec.rb Fix test-related issues (#17888) 2022-03-28 12:43:58 +02:00
unallow_domain_service_spec.rb Fix various warnings in rspec (#14729) 2020-09-04 20:22:26 +02:00
unblock_domain_service_spec.rb
unblock_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
unfollow_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
unmute_service_spec.rb
unsuspend_account_service_spec.rb Fix test-related issues (#17888) 2022-03-28 12:43:58 +02:00
update_account_service_spec.rb Refactor and improve tests (#17386) 2022-01-28 00:46:42 +01:00
update_status_service_spec.rb Fix edits with no actual changes being allowed (#17843) 2022-03-26 00:38:44 +01:00
verify_link_service_spec.rb