Defect #37379

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

Added by Yasuhiro Sakuramoto about 1 month ago. Updated 26 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Text formatting
Target version:4.2.8
Resolution:Fixed Affected version:4.2.7

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

error_message.png (11.3 KB) Yasuhiro Sakuramoto, 2022-07-03 14:52

fix-37379.patch Magnifier (1.88 KB) Mizuki ISHIKAWA, 2022-07-14 08:19

Associated revisions

Revision 21716
Added by Go MAEDA 28 days ago

Thumbnail macro does not work when a file is attached and preview is displayed immediately (#37379).

Patch by Mizuki ISHIKAWA.

Revision 21719
Added by Go MAEDA 28 days ago

Fix test failure (#37379).

Revision 21735
Added by Go MAEDA 26 days ago

Merged r21716 and r21719 from trunk to 5.0-stable (#37379).

Revision 21736
Added by Go MAEDA 26 days ago

Merged r21716 and r21719 from trunk to 4.2-stable (#37379).

History

#1 Updated by Go MAEDA about 1 month 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

#2 Updated by Mizuki ISHIKAWA about 1 month ago

Attached is a patch to resolve the issue.

#3 Updated by Go MAEDA about 1 month ago

  • Target version set to Candidate for next minor release

#4 Updated by Go MAEDA 29 days ago

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

Setting the target version to 4.2.8.

#5 Updated by Go MAEDA 28 days ago

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

Committed the patch. Thank you for your contribution.

#6 Updated by Go MAEDA 26 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF