Project

General

Profile

Actions

Defect #34046

open

Escaping symbols in task subject can broke export to Gantt (PNG)

Added by Kirill Trofimov about 4 years ago. Updated about 1 year ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
Gantt
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello there, I think i found a problem with export Gantt to PNG. When I have task's subject with escape characters for example: "Student's Problems with new login page" I receive error (from Redmine logs):

MiniMagick::Error (`convert -size 1125x926 xc:white -stroke transparent -fill black -stroke transparent 
...
-strokewidth 1 -draw text 84,418 'Student'"'"'s Problems with new login page' -fill 
...
red -draw line 516,36 516,925 /tmp/mini_magick20200929-4913-1ne7j9r.png` failed with error:
convert-im6.q16: non-conforming drawing primitive definition `'' @ error/draw.c/RenderMVGContent/4301.
):

lib/redmine/helpers/gantt.rb:381:in `to_image'
app/controllers/gantts_controller.rb:44:in `block (2 levels) in show'
app/controllers/gantts_controller.rb:42:in `show'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

And when I except this task by filters from Gantt everything is fine. Is there any chances to fix this issue?


Files

fixed-34046.patch (2.52 KB) fixed-34046.patch Yuichi HARADA, 2020-09-30 09:34

Related issues

Related to Redmine - Feature #30492: Replace RMagick with MiniMagickClosedGo MAEDA

Actions
Related to Redmine - Defect #38728: Correctly escape issue text in Gantt PNG export for ImageMagick convertClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF