Defect #37881
closed
Thumbnails are no longer fetched for all notes of an issue
Added by Ambright GmbH about 2 years ago.
Updated about 2 years ago.
Description
Hello. In Redmine 4 one could upload an attachment and use its file name in a thumbnail-macro in all issue comments (aka notes, aka journal). With version 5 the thumbnail is shown only in the comment, with which an image was uploaded, and if one reuses the macro code in other comments, then an error is shown "Error executing the thumbnail macro (test.jpg not found)"
Files
Confirmed the issue.
The macro {{thumbnail}}
works only if the image is attached to the same journal where the macro is embedded. In the following screenshot, {{thumbnail(IMG_6964.JPG)}}
works in note-3 but does not in note-4.
This issue looks similar to #37379.
- Related to Defect #37379: Thumbnail macro does not work when a file is attached and preview is displayed immediately added
Patch attached.
I have made similar changes in #37130.
- Related to Defect #37130: Wiki notation `attachment:file_name` cannot make a link to a file attached to other journals added
- Target version set to 5.0.5
Setting the target version to 5.0.5.
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix. Thank you.
- Status changed from Resolved to Closed
- Has duplicate Defect #38209: Error executing the thumbnail macro (Attachment image.png not found) when uploaded in note from MacOS Firefox 109 added
Also available in: Atom
PDF