Project

General

Profile

Actions

Defect #37881

closed

Thumbnails are no longer fetched for all notes of an issue

Added by Ambright GmbH over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

37881-confirmed.jpg (154 KB) 37881-confirmed.jpg Go MAEDA, 2022-11-07 06:54
fix-37881.patch (1.78 KB) fix-37881.patch Mizuki ISHIKAWA, 2022-12-21 02:08

Related issues

Related to Redmine - Defect #37379: Thumbnail macro does not work when a file is attached and preview is displayed immediatelyClosedGo MAEDA

Actions
Related to Redmine - Defect #37130: Wiki notation `attachment:file_name` cannot make a link to a file attached to other journalsClosedGo MAEDA

Actions
Has duplicate Redmine - Defect #38209: Error executing the thumbnail macro (Attachment image.png not found) when uploaded in note from MacOS Firefox 109Closed

Actions
Actions #1

Updated by Go MAEDA over 1 year ago

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.

Actions #2

Updated by Go MAEDA over 1 year ago

  • Related to Defect #37379: Thumbnail macro does not work when a file is attached and preview is displayed immediately added
Actions #3

Updated by Mizuki ISHIKAWA over 1 year ago

Patch attached.
I have made similar changes in #37130.

Actions #4

Updated by Go MAEDA over 1 year ago

  • Related to Defect #37130: Wiki notation `attachment:file_name` cannot make a link to a file attached to other journals added
Actions #5

Updated by Go MAEDA over 1 year ago

  • Target version set to 5.0.5

Setting the target version to 5.0.5.

Actions #6

Updated by Go MAEDA over 1 year ago

  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you.

Actions #7

Updated by Go MAEDA over 1 year ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Go MAEDA about 1 year ago

  • Has duplicate Defect #38209: Error executing the thumbnail macro (Attachment image.png not found) when uploaded in note from MacOS Firefox 109 added
Actions

Also available in: Atom PDF