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/app/controllers/concerns
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
3 years ago
..
access_token_tracking_concern.rb Change authorized applications page (#17656) 3 years ago
account_controller_concern.rb Add ActivityPub secure mode (#11269) 6 years ago
account_owned_concern.rb Change public profile pages to be disabled for unconfirmed users (#17385) 3 years ago
accountable_concern.rb Add audit log entries for user roles (#19040) 3 years ago
authorization.rb Bump pundit from 2.1.1 to 2.2.0 (#17543) 3 years ago
cache_concern.rb Fix cache_collection crashing when given an empty collection (#15921) 4 years ago
challengable_concern.rb Bump rubocop from 0.86.0 to 0.88.0 (#14412) 5 years ago
export_controller_concern.rb Refactor settings controllers (#14767) 5 years ago
localized.rb Add trending statuses (#17431) 3 years ago
rate_limit_headers.rb Add specific rate limits for posting and following (#13172) 5 years ago
registration_spam_concern.rb Add honeypot fields and minimum fill-out time for sign-up form (#15276) 4 years ago
session_tracking_concern.rb Change authorized applications page (#17656) 3 years ago
signature_authentication.rb Allow retrieval of private statuses (single or in outbox) using HTTP signatures (#6225) 7 years ago
signature_verification.rb Improve error reporting and logging when processing remote accounts (#15605) 3 years ago
status_controller_concern.rb Refactor controllers for statuses, accounts, and more (#11249) 6 years ago
two_factor_authentication_concern.rb Fix redirection when succeeded WebAuthn (#17098) 3 years ago
user_tracking_concern.rb Change authorized applications page (#17656) 3 years ago