Files
Anthias/bin
Viktor Petersson 7acda8ca8d fix(server): serve remote-hosted image/video previews from their source URL (#3211)
The asset preview and download endpoints decided whether to redirect to
the source URL or stream a local file by mimetype (webpage/streaming
only). A remote-hosted image is stored mimetype=image with an http(s)
URI, so it fell through to the local-file lookup, found no file on disk,
and 302'd to the home page — a blank preview in the management UI.

Dispatch on the URI scheme instead: any http(s) asset redirects to its
source, and only filesystem-path assets are served from disk. rtsp/rtmp
streams and unknown schemes still fall back to the home page as before.

Also fix the DB section of collect_debug.sh: its host-sqlite3-missing
fallback imported the pre-#2818 module path (anthias_app.models), so the
bundle carried a Python traceback instead of any asset data. The server
container already ships sqlite3 and bind-mounts the DB, so run the same
read-only queries there, and surface is_reachable — the field that
distinguishes a failed reachability probe from a working one when
triaging "web content doesn't display" reports.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 06:23:20 +01:00
..
2021-01-08 18:07:41 +00:00
2023-02-03 14:28:41 -05:00