Project

General

Profile

Actions

Defect #37379

closed

Thumbnail macro does not work when a file is attached and preview is displayed immediately

Added by Yasu Saku over 2 years ago. Updated over 2 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Steps to reproduce:
  1. Open the wiki edit page.
  2. Upload an image file (e.g. imagefile.png) but do not save.
  3. Insert thumbnail macro.
    e.g:
    {{thumbnail(imagefile.png)}}
    
  4. Show preview.
  5. Thumbnail is not displayed and error message is displayed, like this:
    Error executing the thumbnail macro (Attachment imagefile.png not found)
    

(After saving the wiki, the thumbnail will be displayed without any problems.)


Files

error_message.png (11.3 KB) error_message.png Yasu Saku, 2022-07-03 14:52
fix-37379.patch (1.88 KB) fix-37379.patch Mizuki ISHIKAWA, 2022-07-14 08:19

Related issues

Related to Redmine - Defect #37881: Thumbnails are no longer fetched for all notes of an issueClosedGo MAEDA

Actions
Related to Redmine - Defect #38697: Exception during thumbnail macro to image tag conversion in emailsClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF