You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/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
2 years ago
..
controllers Add ability to filter individual posts (#18945) 2 years ago
fabricators Add ability to filter individual posts (#18945) 2 years ago
features Add submit button to the top of preferences pages (#13068) 5 years ago
fixtures Fix some link previews being incorrectly generated from other prior links (#16885) 3 years ago
helpers Add audit log entries for user roles (#19040) 2 years ago
lib Fix typos (#18604) 2 years ago
mailers Remove digest e-mails (#17985) 2 years ago
models Change e-mail domain blocks to match subdomains of blocked domains (#18979) 2 years ago
policies Add customizable user roles (#18641) 3 years ago
presenters Add ability to filter individual posts (#18945) 2 years ago
requests Further preparation for Rails 6 (#15916) 4 years ago
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 8 years ago
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 6 years ago
services Improve error reporting and logging when processing remote accounts (#15605) 2 years ago
support Spelling (#17705) 3 years ago
validators Add administrative webhooks (#18510) 3 years ago
views Redesign /about when already logged in (#17348) 3 years ago
workers Remove digest e-mails (#17985) 2 years ago
rails_helper.rb Fix single Redis connection being used across all threads (#18135) 3 years ago
spec_helper.rb Improve tests involving push_bulk (#17508) 3 years ago