Skip to content

Deleting the LDAP mail attribute doesn't delete the Gitblit user's mail attribute #752

Description

@gitblit

Originally reported on Google Code with ID 456

If the mail attribute is empty in LDAP and then I fill it and re-login on the web UI
(which apparently triggers fetching the account details) it updates the Gitblit user's
mail attribute accordingly, but if I do it the other way around i.e. the LDAP mail
attrib is already filled and I erase it the Gitblit mail attribute will not go away.

I'm pretty sure it's not a cache problem coz the user's LDAP attrib's been empty for
weeks and Gitblit's been restarted several times ever since. The old mail attrib's
still present in Gitblit.

If I delete the mapped Gitblit user and re-login, the user will appear in the Gitblit
user list without the mail address, as it should.

Also, if I add just a simple character to the LDAP mail attrib Gitblit will change
the Gitblit user's mail attrib to that right away. So it seems like an unnecessary
check somewhere in the code.

Reported by sundayfunday1234@outlook.com on 2014-07-02 12:02:09

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions