#5777 - auto_thumbs filename conflicts

  • By
  • Added
  • 2 views
Identifier #5777
Issue type Trivial issue (does not break functionality)
Title auto_thumbs filename conflicts
Status Completed
Handling member PDStig
Version 11 alpha4
Addon core
Description Sometimes when adding images, the auto_thumbs may conflict because the filename gets truncated and the image happens to have the same truncated portion as another image, thus resulting in the wrong thumbnail being displayed.

Perhaps auto_thumbs should use hashes or ID numbers instead. Better yet, just use a directory structure instead of putting everything into the filename and then having to truncate.
Steps to reproduce

Funded? No
Commits

Always use md5 in url_to_filename to help prevent clashes with truncation in image thumb names (d780b33a) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated