Skip to content

Conversation

@dmiales
Copy link

@dmiales dmiales commented Jan 2, 2026

Fix resource leaks and improve file upload collision handling

  • Fix Cursor resource leaks in UploadsStorageManager and FileDetailSharingFragment
    by adding proper try-finally blocks to ensure cursors are always closed

  • Improve file upload collision handling in UploadFileOperation

    • Add content comparison for non-encrypted files when SKIP policy is used
    • Report SYNC_CONFLICT when file with same name has different content
    • Preserve old behavior for encrypted files and edge cases
  • Change log level from warning to info for informational messages
    in AutoUploadWorker and UploadErrorNotificationManager

- Fix Cursor resource leaks in UploadsStorageManager and FileDetailSharingFragment by adding proper try-finally blocks to ensure cursors are always closed

- Improve file upload collision handling in UploadFileOperation

  - Add content comparison for non-encrypted files when SKIP policy is used

  - Report SYNC_CONFLICT when file with same name has different content

  - Preserve old behavior for encrypted files and edge cases

- Change log level from warning to info for informational messages in AutoUploadWorker and UploadErrorNotificationManager

Signed-off-by: dmiales <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants