Page 1 of 1

Bug in Mantis 1.0.1 (with added feature request)

Posted: 13 Mar 2006, 22:03
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.) )

Posted: 13 Mar 2006, 22:38
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.

Posted: 14 Mar 2006, 03:18
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!

Posted: 14 Mar 2006, 09:28
by vboctor
dcomo, please report the issue in the bugtracker (http://bugs.mantisbt.org).

Regards,
Victor
Mantis Blog
http://www.futureware.biz

Posted: 15 Mar 2006, 16:04
by dcomo
This was submitted as bug: 0006851