mirror of
https://github.com/Screenly/Anthias.git
synced 2026-07-30 09:15:51 -04:00
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>