Oeffentliche Share-Zugriffsseite fuer externe Besucher (Modul 13/16 UI-Backlog) #385

Closed
opened 2026-09-15 21:21:55 +00:00 by Leopoldadmin · 0 comments
Owner

UI-Backlog Modul 13: Public-Share

Backend: /api/v1/public/share/{token} (permissions-Plugin, oeffentlich ohne Auth): GET Info (Name/Groesse/MIME/Passwort-Flag/Ablauf), POST /verify (Passwort), GET /download (StreamingResponse). Share-Link-ERSTELLUNG war bereits im DMS-ShareDialog abgedeckt — die LUECKE war die oeffentliche Zugriffsseite fuer externe Besucher (Token-Links fuehrten vorher zu rohem API-JSON).

Frontend (Commits 00f8f10 + 2fbffcd):

  • api/publicShare.ts — fetchPublicShareInfo, verifyPublicSharePassword, publicShareDownloadUrl, publicSharePageUrl
  • pages/PublicShare.tsx — oeffentliche Zugriffsseite: Datei-Card (Name/Groesse/MIME), Passwort-Formular bei geschuetzten Links (Enter-Support, Fehlermeldung), Download-Button nach Freischaltung, Ablaufdatum-Anzeige, Fehlerzustaende (404 nicht gefunden / 410 abgelaufen / generisch)
  • routes/index.tsx: statische oeffentliche Route /share/:token (analog /guest, ausserhalb ProtectedRoute)
  • ShareDialog-Fix: kopiert/zeigt jetzt SPA-Link /share/{token} statt API-JSON-Pfad
  • 404/410-Erkennungs-Fix (2fbffcd): ApiError.status statt err.response.status im Catch
  • i18n de/en: 16 publicShare-Keys
  • Tests: __tests__/pages/PublicShare.test.tsx 9/9 (Loading, Unlocked+Download, Expiry, Passwort-Flow valid/invalid, 404/410/generisch, Disabled-State)

Verifikation:

  • tsc exit=0, Vitest 9/9, Production-Build OK, Frontend-Deploy
  • Live (ohne Login): /share/invalid-token rendert Fehlerseite 'Link not found' (kein Login-Redirect), API ohne Session 404, keine JS-Fehler

DoD: erfüllt.

## UI-Backlog Modul 13: Public-Share **Backend:** `/api/v1/public/share/{token}` (permissions-Plugin, oeffentlich ohne Auth): GET Info (Name/Groesse/MIME/Passwort-Flag/Ablauf), POST `/verify` (Passwort), GET `/download` (StreamingResponse). Share-Link-ERSTELLUNG war bereits im DMS-ShareDialog abgedeckt — die LUECKE war die oeffentliche Zugriffsseite fuer externe Besucher (Token-Links fuehrten vorher zu rohem API-JSON). **Frontend (Commits 00f8f10 + 2fbffcd):** - `api/publicShare.ts` — fetchPublicShareInfo, verifyPublicSharePassword, publicShareDownloadUrl, publicSharePageUrl - `pages/PublicShare.tsx` — oeffentliche Zugriffsseite: Datei-Card (Name/Groesse/MIME), Passwort-Formular bei geschuetzten Links (Enter-Support, Fehlermeldung), Download-Button nach Freischaltung, Ablaufdatum-Anzeige, Fehlerzustaende (404 nicht gefunden / 410 abgelaufen / generisch) - `routes/index.tsx`: statische oeffentliche Route `/share/:token` (analog /guest, ausserhalb ProtectedRoute) - **ShareDialog-Fix:** kopiert/zeigt jetzt SPA-Link `/share/{token}` statt API-JSON-Pfad - **404/410-Erkennungs-Fix (2fbffcd):** ApiError.status statt err.response.status im Catch - i18n de/en: 16 publicShare-Keys - Tests: `__tests__/pages/PublicShare.test.tsx` 9/9 (Loading, Unlocked+Download, Expiry, Passwort-Flow valid/invalid, 404/410/generisch, Disabled-State) **Verifikation:** - tsc exit=0, Vitest 9/9, Production-Build OK, Frontend-Deploy - Live (ohne Login): /share/invalid-token rendert Fehlerseite 'Link not found' (kein Login-Redirect), API ohne Session 404, keine JS-Fehler **DoD:** erfüllt.
Leopoldadmin added the task label 2026-09-15 21:21:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Leopoldadmin/leocrm#385