incorrect sort of generated md5sum #2015

Closed
opened 2026-10-05 01:03:58 +02:00 by adam · 1 comment
Owner

When computing md5sums for photos having images.md5sum=null (basically all photos added by sync), the add_md5sum function randomly assign md5sum to provided list of photo ids. If you ask to add the md5um to 10 photos, photo number 2 might get the md5sum of photo 7... Not good.

We haven't seen the problem in 7 years because Piwigo only searches for missing md5sums. Not "inaccurate" md5sums. This might change in the future with advanced file integrity checks.

When computing md5sums for photos having `images.md5sum=null` (basically all photos added by sync), the `add_md5sum` function randomly assign md5sum to provided list of photo ids. If you ask to add the md5um to 10 photos, photo number 2 might get the md5sum of photo 7... Not good. We haven't seen the problem in 7 years because Piwigo only searches for missing md5sums. Not "inaccurate" md5sums. This might change in the future with advanced file integrity checks. <!-- github-sync-id:2827876855 -->
adam closed this issue 2026-10-05 01:03:58 +02:00
Author
Owner

In https://github.com/plegall/Piwigo-virtualize/commit/03be498a8c118d40b7843798cc526e9604aaf449 I have decided to forbid virtualization if you have missing md5sums

In https://github.com/plegall/Piwigo-virtualize/commit/03be498a8c118d40b7843798cc526e9604aaf449 I have decided to forbid virtualization if you have missing md5sums <!-- github-comment-id:3065663669 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2015