Actions
Patch #14592
closedmigrate_from_trac.rake does not properly parse First Name and Last Name
Start date:
Due date:
% Done:
0%
Estimated time:
Description
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
Files
Related issues
Updated by Toshi MARUYAMA over 11 years ago
- Related to Patch #14567: migrate_from_trac.rake does not convert timestamps in Trac database version 23 added
Updated by Jean-Philippe Lang about 11 years ago
- Status changed from New to Resolved
- Target version set to 2.3.4
Patch applied in r12164, thanks!
Actions