プロジェクト

全般

プロフィール

Vote #81331

完了

Remove dependency on MimeMagic

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Gems support_45
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
45
version_id:
166
issue_org_id:
34969
author_id:
332
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In Redmine, MimeMagic is used to check that files with invalid formats are not passed to ImageMagick when generating thumbnail images with ImageMagick.

This patch replaces MimeMagic with "Marcel":https://github.com/rails/marcel, a gem bundled with Rails. The benefits of this change are as follows:

  • Simplifies the installation process: Due to "a licensing issue":https://github.com/mimemagicrb/mimemagic/issues/97, the MIME database freedesktop.org.xml was removed from MimeMagic. As a result, you have to make sure that your system has shared-mime-info before you install Redmine. Marcel bundles another database "Apache Tika":https://tika.apache.org/, so you don't have to install MIME database separately
  • Can reduce memory usage: By replacing MimeMagic with Marcel, we can reduce one gem dependency. Rails used to depend on MimeMagic, but in Rails 5.2.5 it no longer does. Now only Redmine itself depends on MimeMagic

journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the patches.
--------------------------------------------------------------------------------
I think it is better to merge the change to older versions for the following reason. Keep using MimeMagic may cause installation trouble in some environments.

Go MAEDA wrote:
> * Simplifies the installation process: Due to "a licensing issue":https://github.com/mimemagicrb/mimemagic/issues/97, the MIME database freedesktop.org.xml was removed from MimeMagic. As a result, you have to make sure that your system has shared-mime-info before you install Redmine. Marcel bundles another database "Apache Tika":https://tika.apache.org/, so you don't have to install MIME database separately

--------------------------------------------------------------------------------
Backported to 4.1-stable in r20877 and r20878.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Backported to 4.0-stable in r20953.
--------------------------------------------------------------------------------


related_issues

relates,Closed,34966,Update Rails to 5.2.5

Admin Redmine さんが約4年前に更新

  • カテゴリGems support_45 にセット
  • 対象バージョン4.0.9_166 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0