Oeffentliche Share-Zugriffsseite fuer externe Besucher (Modul 13/16 UI-Backlog) #385
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, publicSharePageUrlpages/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)/share/{token}statt API-JSON-Pfad2fbffcd): ApiError.status statt err.response.status im Catch__tests__/pages/PublicShare.test.tsx9/9 (Loading, Unlocked+Download, Expiry, Passwort-Flow valid/invalid, 404/410/generisch, Disabled-State)Verifikation:
DoD: erfüllt.