Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Incorrect users in history when attaching changeset #29

dregad opened this Issue · 3 comments

1 participant


Commits authored by someone without write access to repository and/or without being developer in MantisBT are not registered properly in the MantisBT history, as shown in the issue below

In this example, the commit was authored by "JGuilbaud" aka LapinKiller in MantisBT, and committed by me.

  • Changeset attach event is logged by non-existent user id '0'
  • Issue fields updates are done by 'anonymous' user
Date Modified    Username       Field                    Change               
2012-09-10 09:29 user0          Changeset attached        => MantisBT
master-1.2.x 7aa07d86
2012-09-10 09:29 anonymous      Status                   assigned => resolved
2012-09-10 09:29 anonymous      Resolution               open => fixed       
2012-09-10 09:29 anonymous      Fixed in Version          => 1.2.x           

I believe the author should be the committer.


I noticed another problem, which probably has the same root cause. If the commit's author is a valid MantisBT user (identified by matching commit's e-mail address or username with DB), then the issue is updated with the author's id, even if they do not have the right access level to perform the action (e.g. a reporter becomes the issue's handler).


Date Modified       Username       Field                 Change
2013-02-21 11:52    marco.dings    Changeset attached    => MantisBT master-1.2.x 9b8beb72
2013-02-21 11:52    marco.dings    Assigned To           => marco.dings
2013-02-21 11:52    marco.dings    Status                new => resolved
2013-02-21 11:52    marco.dings    Resolution            open => fixed
2013-02-21 11:52    marco.dings    Fixed in Version      => 1.2.x
2013-02-21 11:52    marco.dings    Changeset attached    => MantisBT master b41b5281

Actually, the problem is slightly worse than just that the wrong field being used to perform MantisBT actions - the plugin saves incorrect changeset information to the database:

  • In MantisBT repository, changeset details indicate that the author and the committer are the same person (marco.dings).
  • However in the original commit 9b8beb720c86c0aef450dc7467795e2d7d2428a3, the author is marco.dings and the committer is dregad

Therefore the data in the plugin's tables does not reflect the reality.


Fixed in 602cc40

@dregad dregad closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.