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 #1

Updated by Go MAEDA over 2 years ago

  • Category changed from Wiki to Text formatting
  • Status changed from New to Confirmed
  • Affected version changed from 5.0.2 to 4.2.7
Actions #2

Updated by Mizuki ISHIKAWA over 2 years ago

Attached is a patch to resolve the issue.

Actions #3

Updated by Go MAEDA over 2 years ago

  • Target version set to Candidate for next minor release
Actions #4

Updated by Go MAEDA over 2 years ago

  • Target version changed from Candidate for next minor release to 4.2.8

Setting the target version to 4.2.8.

Actions #5

Updated by Go MAEDA over 2 years ago

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

Committed the patch. Thank you for your contribution.

Actions #6

Updated by Go MAEDA over 2 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Go MAEDA about 2 years ago

  • Related to Defect #37881: Thumbnails are no longer fetched for all notes of an issue added
Actions #8

Updated by Go MAEDA over 1 year ago

  • Related to Defect #38697: Exception during thumbnail macro to image tag conversion in emails added
Actions

Also available in: Atom PDF