MantisBT - Community
View Issue Details
0023411Community[OCCT] Website:Trackerpublic2012-08-30 19:472019-01-31 15:12
0023411: Incorrect association of Git author / committer with Mantis user account
As noticed by Roman Lygin, commits having him as an author are associated by Mantis with account 'rln' instead of 'Roman Lygin' (both accounts naturally have the same real person name), see e.g. 0023393. This is probably a bug in Mantis Source Integration plugin.
No tags attached.
Issue History
2012-08-30 19:47abvNew Issue
2012-08-30 19:47abvAssigned To => bugmaster
2012-09-04 11:04bugmasterAssigned Tobugmaster => aiv
2012-09-04 11:04bugmasterStatusnew => assigned
2012-09-04 17:42aivNote Added: 0021409
2012-09-05 11:46aivNote Edited: 0021409bug_revision_view_page.php?bugnote_id=21409#r4211
2019-01-31 15:12kgvAssigned Toaiv => bri

2012-09-04 17:42   
(edited on: 2012-09-05 11:46)
The scheme of working of the standard MantisBT Source Control Integration plugin is as follows:

information for each changeset is taken from gitweb, for example:

author Roman Lygin <>
 Sun, 19 Aug 2012 07:01:32 +0000 (11:01 +0400)

from this extracted:

<author> = "Roman Lygin";
<author_email> = "";

The MantisBT database stores following information for each user:
<user_id>, <username>, <realname>, <email>, ...

these values compared with information extracted from GitWeb as follows:

if (<author> == <username>)
    <my_user_id> = appropriate <user_id>;
if (<author_email> == <email>)
    <my_user_id> = appropriate <user_id>;
if (<author> == <realname>)
    <my_user_id> = appropriate <user_id>;

(<my_user_id> overwrites)

then the <my_user_id> value used as needed

Insofar as comparing with <realname> is the last and there was same realnames for different Roman Lygin's accounts the collisions occurred.

I think it is a good idea report this issue to the plugin maintenance team, because the such comparison order looks strange...