#5777 - auto_thumbs filename conflicts
| 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 |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
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).