プロジェクト

全般

プロフィール

Vote #74202

完了

migrate_from_trac.rake does not properly parse First Name and Last Name

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

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

0%

予定工数:
category_id:
15
version_id:
74
issue_org_id:
14592
author_id:
82783
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In migrate_from_trac.rake, there is this code:

      name =~ (/(.*)(\s+\w+)?/)
      fn = $1.strip
      ln = ($2 || '-').strip

The regular expression breaking up name is wrong. (.*) will match the whole
string, so the entire name is set to $1, so the entire name gets assigned
to fn, and ln is blank.

The attached patch fixes that. Also, I ran into one case where
the name was empty, so $1.strip threw an exception. I fixed that too with
the attached patch.

Related to #14567


journals

--------------------------------------------------------------------------------
Patch applied in r12164, thanks!
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------


related_issues

relates,New,14567,migrate_from_trac.rake does not convert timestamps in Trac database version 23

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

  • カテゴリImporters_15 にセット
  • 対象バージョン2.3.4_74 にセット

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

いいね!0
いいね!0