fix(api): tolerate duplicate upload_session_files rows in media maintenance lookup #943
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/media-maintenance-duplicate-usf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
requireOwnedMediacrashed withIncorrectResultSizeDataAccessException(HTTP 500) on POST /api/media/{id}/reset-faces whenever a media item had multipleupload_session_filesrows — which the upload dedup path produces on re-upload of an identical photo (originalprocessing_queued+ laterskipped_duplicaterows, all withcommitted_media_item_idset). Hundreds of affected items in production.singleRow(). Same treatment forownerMediaForPixelProcessingandownerMediaMissingDimensions(duplicates would double-enqueue jobs / double-count scans).Tests
detectedFormat.rtk ./gradlew :apps:api:testgreen.Found but intentionally not touched (follow-up candidates)
Unblocks the EXIF face-box migration (companion to PR #942).