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
abc60399d8
Add folder type checks in viewer handlers to prevent folder viewing
2026-01-26 04:17:38 +01:00
Leon Bösche
5dd6d79d4c
Refine CORS settings in file download handlers and update viewer behavior for mobile and authenticated web
2026-01-25 20:24:07 +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
ce29077e8c
Add folder type checks in publicFileDownloadHandler and publicFileViewHandler
2026-01-25 20:00:31 +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
2205536549
idle
2026-01-25 18:28:39 +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
26fa1712ec
Fix WebDAV 504 by using internal Nextcloud URL
2026-01-25 16:23:18 +01:00
Leon Bösche
9bc03f6db8
Add file viewer dispatch for handling multiple file types and extend download timeout
2026-01-25 16:14:03 +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
532848ebdf
Fix PDF loading by preserving Nextcloud headers
...
- Revert to synchronous download but keep 5-minute timeout
- Copy Content-Length and other headers from Nextcloud response
- Ensures PDF viewer gets proper content metadata
- Maintains streaming for audio/video with headers
2026-01-25 15:42:10 +01:00
Leon Bösche
387f39cbcc
Fix public file streaming with async download
...
- Use io.Pipe for immediate response headers
- Start WebDAV download in goroutine to avoid blocking
- Stream content as it becomes available
- Prevents client timeouts on slow downloads
- Maintains CORS and MIME type headers
2026-01-25 15:40:04 +01:00
Leon Bösche
4d1e83e9e7
Fix public file download timeout
...
- Increase timeout for WebDAV downloads from default to 5 minutes
- Prevents 504 Gateway Timeout errors when downloading large files
- Uses context.WithTimeout for better control over download duration
2026-01-25 15:26:09 +01:00
Leon Bösche
93bc0e582a
Change API base URL to www.b0esche.cloud and revert host to www for public URLs
2026-01-25 03:34:17 +01:00
Leon Bösche
d3c174f623
Fix public share URLs to use request host instead of hardcoded www.b0esche.cloud
2026-01-25 03:33:28 +01:00
Leon Bösche
08fc0906c0
Add range request support to publicFileViewHandler for video/audio seeking
2026-01-25 03:23:59 +01:00
Leon Bösche
e7b222bc7d
Force correct Content-Type for public files and add OPTIONS handlers for CORS
2026-01-25 03:22:39 +01:00
Leon Bösche
1f3b70ba74
Fix shared audio/video viewer: add CORS and Content-Type headers to public endpoints
2026-01-25 02:47:39 +01:00
Leon Bösche
aec4fd0272
Fix public file share handler: include audio MIME types for inline viewing
2026-01-25 02:29:53 +01:00
Leon Bösche
8fd0ded519
Reorder PublicFileViewer header: download button left, close button right, add 4px top padding
2026-01-25 00:57:55 +01:00
Leon Bösche
db331ef4ca
Fix share link routing: add initialLocation to GoRouter and fix download URL host
2026-01-25 00:34:16 +01:00
Leon Bösche
f44d64b7ad
Fix share URL host to always use www.b0esche.cloud instead of r.Host
2026-01-25 00:27:58 +01:00
Leon Bösche
7ed915555b
Update file share link host to use 'www' for consistency
2026-01-25 00:20:32 +01:00
Leon Bösche
a321104b4c
Update file share link URLs to remove 'public' segment for consistency
2026-01-25 00:02:59 +01:00
Leon Bösche
ea5c297641
Implement automatic share link creation and logging for file sharing; make org_id nullable in file_share_links
2026-01-24 23:45:08 +01:00
Leon Bösche
82eba17a82
Enhance file sharing functionality: infer org_id when not provided, update share link responses to include shareUrl
2026-01-24 23:16:51 +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
cca21c09d5
Allow NULL org_id in file_share_links for personal file sharing, update model and handlers
2026-01-24 22:54:50 +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
49c578cef2
Remove backup of file_share_links table migration
2026-01-24 21:22:39 +01:00
Leon Bösche
44081099c4
Update migration steps to include file share links in the migration process
2026-01-24 21:20:06 +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
d7ae944aee
Fix backend to return empty slices instead of null for JSON encoding
...
- Initialize slices as empty in database query functions to prevent json.Encode(nil) returning 'null'
- This fixes Flutter Dio parsing 'null' as null, causing cast to List to fail
2026-01-24 03:21:30 +01:00
Leon Bösche
c3e3356574
Refactor user struct and user info handling for improved readability
2026-01-24 02:30:34 +01:00
Leon Bösche
c7e740e732
Fix Organization Management dialog type errors
...
- Fix JSON key mismatch in Flutter models: change 'User' to 'user' in Member and JoinRequest fromJson
- Update backend userInfo to send displayName as *string (null when empty)
- Add json tags to database User struct for consistent lowercase keys
- Handle displayName nullability in backend handlers
2026-01-24 02:30:15 +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
26cbe83d66
Add JoinPage feature with invite token handling and update routing
2026-01-23 23:39:59 +01:00
Leon Bösche
98e7bbdb9e
Refactor code for improved readability and consistency in multiple files
2026-01-23 23:21:46 +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
d9a651b375
Enhance audio file handling with improved error logging and UI adjustments for audio player bar positioning
2026-01-17 02:31:33 +01:00