Bug in Mantis 1.0.1 (with added feature request)

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
dcomo
Posts: 22
Joined: 13 Mar 2006, 21:55

Bug in Mantis 1.0.1 (with added feature request)

Post by dcomo »

In Mantis 1.0.1, I have found a bug where you are not allowed to edit a user if their username matches their 'Real Name'.

Here's an example:

Let's say you have a user called 'Tessie Test' and their username is 'tessie
test', if you try and change their userlevel (permissions), you get the following error:

APPLICATION ERROR #807
The "Real Name" chosen matches another user's login name. Please choose another.

This error should not appear since you are actually editing that user itself.
(I had to make the permission changes within MySQL since Mantis would not let me.)

Also, can you add in functionality so that I can use periods '.' in my usernames? My e-mail syntax is firstname.lastname@ and I'd like for the usernames for Mantis to be the same. (Right now I am using a space, however I will update this when the functionality is added (if it's added.) )
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

Hi dcomo:

I can't help you with the first part, but regarding the period in your usernames. Valid usernames are defined by the regular expression that is stored in the $g_user_login_valid_regex variable.

In your config_inc.php file, add something like:
$g_user_login_valid_regex = '/^[\w \-\.]+$/';

and you should be right.

Hope that helps,
Lincoln.
dcomo
Posts: 22
Joined: 13 Mar 2006, 21:55

Post by dcomo »

Licoln,

Thanks for the tip! I actually didn't notice that the regex was there. I should have looked a little deeper into it.

Allowing the . will obfuscate the bug that I noted since the username will not match the real name 1-for-1, however it's still there... (Not your issue though...)

Thanks!
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

dcomo, please report the issue in the bugtracker (http://bugs.mantisbt.org).

Regards,
Victor
Mantis Blog
http://www.futureware.biz
dcomo
Posts: 22
Joined: 13 Mar 2006, 21:55

Post by dcomo »

This was submitted as bug: 0006851
Post Reply