nyastodon/spec
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
..
controllers Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
fabricators Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
features Add submit button to the top of preferences pages (#13068) 2020-03-08 16:04:03 +01:00
fixtures Fix some link previews being incorrectly generated from other prior links (#16885) 2021-10-21 20:39:35 +02:00
helpers Add audit log entries for user roles (#19040) 2022-08-25 20:39:40 +02:00
lib Fix typos (#18604) 2022-08-28 17:44:34 +02:00
mailers Remove digest e-mails (#17985) 2022-08-25 23:38:22 +02:00
models Change e-mail domain blocks to match subdomains of blocked domains (#18979) 2022-08-24 19:00:55 +02:00
policies Add customizable user roles (#18641) 2022-07-05 02:41:40 +02:00
presenters Add ability to filter individual posts (#18945) 2022-08-25 04:27:47 +02:00
requests Further preparation for Rails 6 (#15916) 2021-03-19 02:45:34 +01:00
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 2017-06-10 09:39:26 +02:00
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 2019-06-27 19:41:55 +02:00
services Improve error reporting and logging when processing remote accounts (#15605) 2022-09-20 23:30:26 +02:00
support Spelling (#17705) 2022-03-06 22:51:40 +01:00
validators Add administrative webhooks (#18510) 2022-06-09 21:57:36 +02:00
views Redesign /about when already logged in (#17348) 2022-03-03 16:14:44 +01:00
workers Remove digest e-mails (#17985) 2022-08-25 23:38:22 +02:00
rails_helper.rb Fix single Redis connection being used across all threads (#18135) 2022-04-28 17:47:34 +02:00
spec_helper.rb Improve tests involving push_bulk (#17508) 2022-02-10 19:42:45 +01:00