View Issue Details

IDProjectCategoryView StatusLast Update
5777Composr alpha bug reportscorepublic2024-09-11 04:00
ReporterPDStig Assigned ToPDStig  
PriorityhighSeveritytrivial 
Status resolvedResolutionfixed 
Summary5777: auto_thumbs filename conflicts
DescriptionSometimes 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.
TagsNo tags attached.
Attach Tags
Attached Files
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

admin

2024-05-25 17:14

administrator   ~8787

Automated message: This issue was created using the Report Issue Wizard on the Composr homesite.

admin

2024-05-26 02:14

administrator   ~8789

Automated response: auto_thumbs filename conflicts

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.

This patch forces url_to_filename to always use md5 hashes to minimize conflicts in this regard (and to reduce filename length).

admin

2024-05-26 02:14

administrator   ~8790

Fixed in Git commit d780b33ac6e4e74435a9ce82e5e5af9c48501450 (https://gitlab.com/composr-foundation/composr/commit/d780b33ac6e4e74435a9ce82e5e5af9c48501450 - link will become active once code pushed to GitLab)

admin

2024-05-26 02:14

administrator   ~8791

A hotfix (a TAR of files to upload) has been uploaded to this issue. Only apply this hotfix if you absolutely need it and cannot wait until the next release of Composr (releases are more reliable and strictly tested). As of Composr version 11, the recommended way to apply a hotfix is by following the same steps as an upgrade (https://baseurl/upgrader.php, use the hotfix on step 5). The upgrader will automatically skip files belonging to addons you do not have installed or that are newer on disk than in the hotfix. Otherwise, you can manually extract and replace these files (do not replace if your on-disk file is newer than the one in the hotfix). Always take backups of your site or at least files you are replacing before applying a hotfix. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change
2024-05-25 17:15 PDStig Description Updated
2024-05-25 17:18 PDStig Description Updated