Keep network details and URLs out of podcast fetch errors

Users see the kind of failure only; resolved addresses and transport
details go to the logs, without URLs. Feed and audio requests are
limited to the web ports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 15:12:38 +02:00
1 parent 99b2935b35
commit c51a9af9e5
10 files changed
+256 -42

No files matched your search

+5
View File
@@ -1903,6 +1903,11 @@ async fn postgres_podcast_api_subscribes_plays_and_keeps_progress() {
.await
.unwrap_err();
assert_eq!(refused.status, 422, "{}", refused.message);
assert_eq!(
refused.message,
"the feed could not be loaded: only public http and https addresses on ports 80, 443, \
8080 and 8443 are allowed"
);
assert!(logged_kinds(&pool, user).await.is_empty());
assert_eq!(server.requests("/show.xml").len(), 0);