Project

General

Profile

Actions

Defect #42145

open

MiniMagick (> 5) removed cli_path, result crash when supplied imagemagick_convert_command

Added by Inseo Park about 18 hours ago. Updated about 17 hours ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Summary

MiniMagick (> 5) removed cli_path, result crash when supplied imagemagick_convert_command

  • condition:
  • version : 6.0.0 ~ 6.0.2 docker image
  • configuration supplied:
configuration.yml have imagemagick_convert_command
  • additional information
  • db : postgres:14-bookworm (14.15 (Debian 14.15-1.pgdg120+1))
  • ruby version: ruby 3.3.7 (2025-01-15 revision be31f993d7) [x86_64-linux]
  • redmine version: 6.0.2-bookworm
  • plugin : none

Symptom

v6.0.x docker image, when pressing PNG button in gantt chart, application crash

log:

redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] NoMethodError (undefined method `cli_path=' for module MiniMagick):
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c]   
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] lib/redmine/helpers/gantt.rb:399:in `to_image'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] app/controllers/gantts_controller.rb:46:in `block (2 levels) in show'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] app/controllers/gantts_controller.rb:42:in `show'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] lib/redmine/sudo_mode.rb:78:in `sudo_mode'

cause estimated

  • mini_magick 4.12.0 has both cli_path and cli_prefix
  • mini_magick 5.0.1 has removed cli_path
reference sites:
Actions

Also available in: Atom PDF