プロジェクト

全般

プロフィール

Vote #81311

完了

User link using @ not working at the end of line

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

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

0%

予定工数:
category_id:
26
version_id:
164
issue_org_id:
34894
author_id:
399232
assigned_to_id:
332
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
127
ステータス-->[Closed]

説明

Redmine fails to parse mention like @jsmith. (with dot at the end)

At source:trunk/app/helpers/application_helper.rb#L1286 regex extracts full line with all extra sybmols like _-@. and thus can't fide a user with that login.

It only affects separator @, user:jsmith. or user#2. works fine.

Small patch with fix and test in attachment.


journals

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

--------------------------------------------------------------------------------
Dmitry, thanks for reporting and fixing this issue, it looks good to me with one mention: we don't need a new test for this case, it's enough to add this case at the existing test.

The patch passes all the tests: https://gitlab.com/redmine-org/redmine/-/pipelines/284519558
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> we don't need a new test for this case, it's enough to add this case at the existing test.
Just wanted to show the difference between other regexs in same situation. Initially only @ was a problem.
--------------------------------------------------------------------------------
Committed the fix. Thank you all for reporting and fixing the issue.
--------------------------------------------------------------------------------

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

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

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

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

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

いいね!0
いいね!0