Commit Graph

43 Commits

Author SHA1 Message Date
Leon Bösche
cc8a1e9ce6 URL-encode WOPISrc in Collabora URL to ensure proper handling in query parameters 2026-02-05 16:08:29 +01:00
Leon Bösche
c49b2d2805 Update WOPISrc URL to include access_token for Collabora and remove unnecessary hidden input 2026-02-05 16:01:05 +01:00
Leon Bösche
9eac0fe178 Add debug logging for X-WOPI-SuggestedTarget header and URL-encode WOPISrc in Collabora URL 2026-02-05 12:38:12 +01:00
Leon Bösche
425ac0c99e Refactor WOPI handlers to retrieve access token from Authorization header, maintaining backward compatibility with query parameter 2026-02-05 12:18:43 +01:00
Leon Bösche
67e6d89eb2 URL-decode access token in WOPI handlers and add debug logging for received tokens 2026-02-04 23:56:42 +01:00
Leon Bösche
5139334d4d Refactor WOPI handlers to remove debug logging and streamline access token usage 2026-02-04 23:31:28 +01:00
Leon Bösche
0d8bf651b2 Add debug logging for WOPI handlers and include access token in WOPISrc URL 2026-02-04 16:58:56 +01:00
Leon Bösche
88aefae33b idle 2026-02-03 19:38:13 +01:00
Leon Bösche
688cec90a8 Refactor WebDAV client to expose BaseURL and update avatar upload logic for improved URL handling 2026-01-29 10:30:24 +01:00
Leon Bösche
11daed18d7 Refactor updateUserProfile method to require displayName and simplify data construction in ApiClient
Add GET route for user avatar retrieval and update CORS settings in routes.go
Implement getUserAvatarHandler to serve user avatars from storage
2026-01-29 10:12:20 +01:00
Leon Bösche
425bfcb495 Refactor user profile update handler to support optional email field and dynamic query construction 2026-01-27 08:47:21 +01:00
Leon Bösche
8400e97d17 Implement user profile management: add update profile functionality, avatar upload, and change password features 2026-01-27 03:28:27 +01:00
Leon Bösche
06ece6dc1b Enhance security architecture and guidelines across documentation and middleware; implement input validation, logging improvements, and security headers in API handlers. 2026-01-27 01:40:36 +01:00
Leon Bösche
ad882ae509 Update CORS handling for web image viewing and adjust host assignment in publicFileShareHandler 2026-01-25 20:06:38 +01:00
Leon Bösche
38bf8013cd Update error message for file download failure in publicFileViewHandler 2026-01-25 19:47:59 +01:00
Leon Bösche
bdc971927f Add image file handling in PublicFileViewer and update publicFileShareHandler for image viewing 2026-01-25 19:39:33 +01:00
Leon Bösche
c91eaa7db9 Update Collabora URL generation in publicFileShareHandler for improved document viewing 2026-01-25 19:30:53 +01:00
Leon Bösche
3854234a3c Update WOPI source URL for document viewing in publicFileShareHandler 2026-01-25 19:22:26 +01:00
Leon Bösche
b041cd5440 Set initial location for GoRouter based on web platform and clean up unused imports in PublicFileViewer 2026-01-25 18:59:28 +01:00
Leon Bösche
3fb556c8f1 Refactor URL generation in file sharing handlers to remove hash fragment 2026-01-25 18:50:02 +01:00
Leon Bösche
9aa1667e9c Implement authentication check and redirect for internal file access in PublicFileViewer 2026-01-25 17:11:58 +01:00
Leon Bösche
0aea602122 Implement public WOPI routes for shared files and integrate Collabora for document viewing 2026-01-25 15:47:59 +01:00
Leon Bösche
421e95d83b Fix nullable org_id handling in public share handlers 2026-01-24 22:56:10 +01:00
Leon Bösche
c7aab0b026 Fix file sharing: add backend routes for /orgs/files/{fileId}/share, update frontend ShareFileDialog to use correct paths and improve UI 2026-01-24 22:47:27 +01:00
Leon Bösche
228a5c9644 Implement user-specific share link management for files 2026-01-24 22:32:58 +01:00
Leon Bösche
acfd882bba Refactor ShareFileDialog header to improve layout and ensure text overflow handling 2026-01-24 22:21:50 +01:00
Leon Bösche
1cf778366f Enhance file sharing handlers to support user ownership checks and improve error handling 2026-01-24 22:13:23 +01:00
Leon Bösche
828b63c8c8 Refactor file download handling to simplify browser download process and ensure proper content disposition for file downloads 2026-01-24 21:11:25 +01:00
Leon Bösche
6bbdc157cb Implement file sharing functionality with public share links and associated API endpoints 2026-01-24 21:06:18 +01:00
Leon Bösche
e10e499b6c Backend: Fix organization API endpoints and RBAC
- Fix member list API response format to match frontend expectations
- Fix join requests API response format
- Add proper JSON tags to Invitation struct
- Grant OrgManage permission to admin role for proper RBAC

These changes ensure frontend-backend API contracts are aligned and admins can manage organizations.
2026-01-23 23:48:10 +01:00
Leon Bösche
20bc0ac757 Implement complete Organizations feature with RBAC
- Add owner/admin/member roles with proper permissions
- Implement invite links and join requests system
- Add organization settings dialog with member management
- Create database migrations for invitations and invite links
- Update backend API with org management endpoints
- Fix compilation errors and audit logging
- Update frontend models and API integration
2026-01-23 23:21:23 +01:00
Leon Bösche
40f7eeee09 Ensure folderPath ends with / for proper relative path calculation in ZIP downloads 2026-01-14 12:11:25 +01:00
Leon Bösche
17d10e5815 Remove invalid custom HTTP client - use query parameter token for SfPdfViewer 2026-01-11 17:54:01 +01:00
Leon Bösche
2129d72a1f FIX: Extend JWT token expiration to 24 hours for document viewer sessions
- Add GenerateWithDuration method to JWT manager to support custom expiration times
- Update viewerHandler and userViewerHandler to generate viewer-specific tokens with 24-hour expiration
- This fixes the issue where PDF viewer fails due to token expiration within 15 minutes
- Add [VIEWER-SESSION] logging to track viewer session creation
- Tokens now remain valid long enough for users to view, navigate, and interact with PDFs
2026-01-11 17:39:12 +01:00
Leon Bösche
9b10b1f6f1 Add debug logging to NewUserWebDAVClient to diagnose URL construction 2026-01-10 23:40:27 +01:00
Leon Bösche
0ce9185373 Fix NewUserWebDAVClient to strip path from base URL before constructing user-specific WebDAV URL 2026-01-10 23:24:24 +01:00
Leon Bösche
4a4e03e041 Fix getUserWebDAVClient to use actual username and COALESCE for NULL handling 2026-01-10 23:16:02 +01:00
Leon Bösche
18600a6bc1 Implement user provisioning for Nextcloud accounts and enhance WebDAV client handling 2026-01-10 22:58:35 +01:00
Leon Bösche
ff370af5a1 Update API binary for improved functionality 2026-01-10 00:39:43 +01:00
Leon Bösche
4f67ead22d Add detailed logging for file uploads and handle upload errors in UI 2026-01-09 23:57:28 +01:00
Leon Bösche
f18e779375 work 2026-01-09 18:58:09 +01:00
Leon Bösche
5cb99815a0 idle 2026-01-08 13:07:07 +01:00
Leon Bösche
7749ebfd08 go first commit 2025-12-17 22:57:57 +01:00