View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
5777 | Composr alpha bug reports | core | public | 2024-05-25 17:14 | 2024-09-11 04:00 |
Reporter | PDStig | Assigned To | PDStig | ||
Priority | high | Severity | trivial | ||
Status | resolved | Resolution | fixed | ||
Summary | 5777: auto_thumbs filename conflicts | ||||
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. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||
Sponsorship open | |||||
|
Automated message: This issue was created using the Report Issue Wizard on the Composr homesite. |
|
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). |
|
Fixed in Git commit d780b33ac6e4e74435a9ce82e5e5af9c48501450 (https://gitlab.com/composr-foundation/composr/commit/d780b33ac6e4e74435a9ce82e5e5af9c48501450 - link will become active once code pushed to GitLab) |
|
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/). |