Project

General

Profile

Actions

Defect #29038

closed

Thumbnail macro causes attachment file not found and broken filename and link

Added by Toru Takahashi almost 6 years ago. Updated over 5 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

Wiki's thumbnail macro seemed to break attachment's filename attribute when the attachment has non-blank description.

  • case 1
    On a wiki page attached an image file with description, and wrote twice thumbnail macros of the image file,
    then second thumbnail macro can not show thumbnail image, but file not found error.
    Sample error page is as follows:

thumbnail_twice_cause_file_not_found.png

  • case 2
    On an issue page attached an image file with description, and wrote one thumbnail macro for the image file, then attached file's filename and link is broken such that filename is shown as filename + description, and file link is same.
    Sample page is as follows:

thumbnail_cause_broken_filename_and_link.png

Case 1 is affected to wiki, issue , news, and forum.
Case 2 is affected to issue, forum.

Environment is

Environment:
  Redmine version                3.4.6.stable
  Ruby version                   2.4.1-p111 (2017-03-22) [x86_64-linux-gnu]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               SQLite

  • Redmine trunk has same behavior.

Files

Actions

Also available in: Atom PDF