document-archive: Paperless ≥ 2.x never serves a logo dropped under media/logo (serve_logo reads the DB only) and the sign-in page never shows the title — brand must land via PATCH /api/config; drive reads the name off /api/ui_settings #1291

Closed
opened 2026-09-07 18:14:10 +00:00 by ben · 0 comments
Owner

Drive 20260907T133810Z (#1277 run 10), document-archive-wears-kit RED — first logo-carrying surface any drive reached: page titled "Paperless-ngx sign in", no community name, [django.request] Not Found: /logo/community-logo.svg — although the guest had the bytes at /var/lib/paperless/media/logo/community-logo.svg and PAPERLESS_APP_LOGO/PAPERLESS_APP_TITLE on the unit (verified live on the run-10 guest).

Cause (v2.20.15 source): /logo/<anything> → serve_logo, which reads ONLY ApplicationConfiguration.app_logo (DB) and 404s otherwise; the login template renders logo OR title (logo wins) under a hard-coded <title>. The 2026-09-04 research table's contract came from older docs.

Ruling (ADR 0174, two-way — Ben: veto anytime): brand lands live through Paperless's config API from a post-start document-archive-brand oneshot (PATCH /api/config/<id>/, multipart app_title + app_logo named with its real extension off logo.type, basic-auth as the module's admin via LoadCredential) — the Listmonk/PeerTube class. The drive reads the applied name off /api/ui_settings/ with the health-check identity; the door screenshot shows the logo. DDR 0225's Paperless token set (name + logo) unchanged; research row corrected.

Landed: 96a3397c. Proof = document-archive-wears-kit green on the next drive.

**Drive 20260907T133810Z (#1277 run 10), `document-archive-wears-kit` RED** — first logo-carrying surface any drive reached: page titled "Paperless-ngx sign in", no community name, `[django.request] Not Found: /logo/community-logo.svg` — although the guest had the bytes at `/var/lib/paperless/media/logo/community-logo.svg` and `PAPERLESS_APP_LOGO`/`PAPERLESS_APP_TITLE` on the unit (verified live on the run-10 guest). **Cause (v2.20.15 source):** `/logo/<anything>` → `serve_logo`, which reads ONLY `ApplicationConfiguration.app_logo` (DB) and 404s otherwise; the login template renders logo OR title (logo wins) under a hard-coded `<title>`. The 2026-09-04 research table's contract came from older docs. **Ruling (ADR 0174, two-way — Ben: veto anytime):** brand lands live through Paperless's config API from a post-start `document-archive-brand` oneshot (`PATCH /api/config/<id>/`, multipart `app_title` + `app_logo` named with its real extension off `logo.type`, basic-auth as the module's admin via LoadCredential) — the Listmonk/PeerTube class. The drive reads the applied name off `/api/ui_settings/` with the health-check identity; the door screenshot shows the logo. DDR 0225's Paperless token set (name + logo) unchanged; research row corrected. **Landed:** `96a3397c`. Proof = `document-archive-wears-kit` green on the next drive.
ben closed this issue 2026-09-07 18:14:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1291
No description provided.