プロジェクト

全般

プロフィール

Vote #75194

完了

Crash in markdown formatter causes ruby process to end

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

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

0%

予定工数:
category_id:
26
version_id:
84
issue_org_id:
16781
author_id:
40856
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

We observed this behavior at "Planio":https://plan.io when invalid markdown syntax was input by the user, which caused an exception in the @link@ callback declared in source:trunk/lib/redmine/wiki_formatting/markdown/formatter.rb because @content@ was @nil@.

This exception seems to make the formatter instance unusable - the next time the formatter was used it crashed the whole ruby process. This seems to be related to "this redcarpet issue":https://github.com/vmg/redcarpet/issues/318.

The patch contains a test case and the (trivial) fix to take care of @content==nil@ in @#link@.


journals

the patch...
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed in r13122, thanks.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

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

  • カテゴリText formatting_26 にセット
  • 対象バージョン2.5.2_84 にセット

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

いいね!0
いいね!0