akkoma/test/support
Oneric 940792f8ba Refetch on AP ID mismatch
As hinted at in the commit message when strict checking
was added in 8684964c5d,
refetching is more robust than display URL comparison
but in exchange is harder to implement correctly.

A similar refetch approach is also employed by
e.g. Mastodon, IceShrimp and FireFish.

To make sure no checks can be bypassed by forcing
a refetch, id checking is placed at the very end.

This will fix:
 - Peertube display URL arrays our transmogrifier fails to normalise
 - non-canonical display URLs from alternative frontends
   (theoretical; we didnt’t get any actual reports about this)

It will also be helpful in the planned key handling overhaul.

The modified user collision test was introduced in
https://git.pleroma.social/pleroma/pleroma/-/merge_requests/461
and unfortunately the issues this fixes aren’t public.
Afaict it was just meant to guard against someone serving
faked data belonging to an unrelated domain. Since we now
refetch and the id actually is mocked, lookup now succeeds
but will use the real data from the authorative server
making it unproblematic. Instead modify the fake data further
and make sure we don’t end up using the spoofed version.
2024-10-14 01:42:43 +02:00
..
builders argon2 password hashing (#406) 2022-12-30 02:46:58 +00:00
captcha Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
matchers Fix signature checking 2023-08-07 16:17:17 +01:00
api_spec_helpers.ex CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
cachex_proxy.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
channel_case.ex Mox mode setup tweak; refactoring. 2021-01-19 00:23:39 +03:00
cluster.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
conn_case.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
data_case.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
elasticsearch_mock.ex Add elasticsearch tests 2022-06-30 16:53:21 +01:00
factory.ex Formatting 2024-04-16 08:02:13 +02:00
helpers.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
http_request_mock.ex Refetch on AP ID mismatch 2024-10-14 01:42:43 +02:00
mocks.ex Fix tests 2024-06-09 18:28:00 +01:00
mrf_module_mock.ex MRF: create MRF.Policy behaviour separate from MRF module 2021-06-07 14:22:08 -05:00
null_cache.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
oban_helpers.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
websocket_client.ex Disconnect streaming sessions when token is revoked 2022-08-27 19:07:48 +01:00