Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge remote-tracking branch 'origin/main' into upload_url_check

Neeraj Guptac69c6e6832ff
diff --cc mobile/apps/photos/lib/core/errors.dart
index a50a3dad70,8ffb2f4418..4bfcc20b4c
--- a/mobile/apps/photos/lib/core/errors.dart
+++ b/mobile/apps/photos/lib/core/errors.dart
@@@ -100,25 -100,22 +100,45 @@@ class MultiPartError implements Excepti
String toString() => "MultiPartError: $message";
}
+class DuplicateUploadURLError extends Error {
+ final DateTime firstUsedAt;
+ final DateTime duplicateUsedAt;
+
+ DuplicateUploadURLError({
+ required this.firstUsedAt,
+ required this.duplicateUsedAt,
+ });
+
+ @override
+ String toString() => "DuplicateUploadURLError: Upload URL was reused. "
+ "First used at: $firstUsedAt, Duplicate attempt at: $duplicateUsedAt. "
+ "This indicates a race condition in parallel uploads.";
+}
+
+class EncSizeMismatchError implements Exception {
+ final String message;
+ EncSizeMismatchError(this.message);
+
+ @override
+ String toString() => "EncSizeMismatchError: $message";
+}
++
+ class InvalidDateTimeError implements Exception {
+ final String assetId;
+ final String? assetTitle;
+ final String field;
+ final String originalError;
+
+ InvalidDateTimeError({
+ required this.assetId,
+ this.assetTitle,
+ required this.field,
+ required this.originalError,
+ });
+
+ @override
+ String toString() {
+ return 'InvalidDateTimeError: $field is invalid for asset '
+ '(id: $assetId, title: ${assetTitle ?? "unknown"}) - $originalError';
+ }
+ }
diff --cc mobile/apps/photos/scripts/internal_changes.txt
index 0b11d8b40d,22ce4cf47a..99f1cfc429
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@@ -1,4 -1,17 +1,9 @@@
+- Neeraj: Asserts for url reuse and plain vs enc size mismatch
+ - Ashil: (i) Swipe to select improvements (changes in auto scroll speed calcuation, added haptics and bug that I caught)
+ - Laurens: Show empty persons and fallback for face thumbnail issues
+ - Prateek: (i) Add native video editor to boost performance
-- Neeraj: Remove feature flags from manage_links_widget (album layout, allow joining album, copy embed HTML)
-- Ashil: Use better copy on auto-add people selection page
-- Ashil: Add more logs to debug app stuck at splash screen issue
-- Prateek: Tag Sentry errors with execution_context for background vs foreground
-- Prateek: Upgrade WorkManager to 0.9.0 and ExistingWorkPolicy to update
-- Neeraj: (i) Copy embed link option
-- Prateek: Fix background uploads on Android 15 by skipping permission request in background mode
-- Prateek: Fix CronetException during background sync by disabling NativeAdapter on Android
-- Laurens: Change similar images labels copy
+ - Laurens: Fix flipped thumbnails issue by removing use of ColorFiltered widget
+ - Neeraj: [CustomerIssue] Handle corrupt asset timestamps with detailed error reporting
- Neeraj: Fix video aspect ratio when shared from external apps
- Prateek: Add logging for background task execution
- Prateek: (i) Add detailed debug logging for upload preparation, pre-upload checks, file queueing, and upload progress tracking