Skip to content

[PB-6660] bugfix/Replace edited asset error - #564

Merged
CandelR merged 3 commits into
feature/PB-6068-photos-backupfrom
bugfix/PB-6660-replace-edited-asset-error
Aug 6, 2026
Merged

[PB-6660] bugfix/Replace edited asset error#564
CandelR merged 3 commits into
feature/PB-6068-photos-backupfrom
bugfix/PB-6660-replace-edited-asset-error

Conversation

@CandelR

@CandelR CandelR commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Fix edited photos and iCloud-optimized assets failing to back up on iOS

Summary

  • PhotoUploadService.replace(): removed the duplicate file check inherited from uploadAssetToBucket(), it always matched the file being replaced, throwing FileAlreadyExistsError uncaught and leaving edited photos permanently marked as error even though the original file was still in Drive. Both the Live Photo and regular paths now go through a shared replaceRemoteFile() helper that uploads and swaps the file directly, with the same fallback for deleted/trashed entries.
  • resolveLocalPath(): shouldDownloadFromNetwork flipped to true.

@CandelR
CandelR requested a review from larryrider August 5, 2026 14:45
@CandelR CandelR self-assigned this Aug 5, 2026
@CandelR CandelR added the bug Something isn't working label Aug 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

@CandelR
CandelR merged commit d792793 into feature/PB-6068-photos-backup Aug 6, 2026
3 checks passed
@CandelR
CandelR deleted the bugfix/PB-6660-replace-edited-asset-error branch August 6, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants