View Issue Details

IDProjectCategoryView StatusLast Update
0007880mantisbtadministrationpublic2009-01-15 11:26
ReporterOrokin Assigned Tothraxisp  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a2 
Fixed in Version1.2.0a3 
Summary0007880: Create new user with same name is allowed. Editting the user reports an error.
Description

When creating a new user, and the user has the same name as their username, the system allows it to be created. If you try to edit that user, the system warns that the username and name are identical and blocks any changes from happening.

Steps To Reproduce

Create a new user with username and realname as test
Click Edit for the test user and click Update
The error is produced.

TagsNo tags attached.

Relationships

has duplicate 0006656 closedthraxisp New member here in BT 1.0.0rc5 

Activities

giallu

giallu

2007-04-12 06:41

reporter   ~0014339

Could you please cut & paste here the error message you are receiving?

Orokin

Orokin

2007-04-12 11:46

reporter   ~0014340

Last edited: 2007-04-12 11:47

APPLICATION ERROR #807

The "Real Name" chosen matches another user's login name. Please choose another.


This is for the same user, not two separate.

djay

djay

2008-08-25 07:40

reporter   ~0019215

Last edited: 2008-08-25 07:41

It happens because there's a specific test in code - the real name is get compared to an existing username.

Depending on general concept of allowing usernames to be used as Real Names or not, there are 2 possible solutions:

  1. If not, check it on signup process and don't allow a user to register with his name being as his or other user username.

  2. If yes, remove the testing clause. (it is in is_user_realname_unique() function ).

thraxisp

thraxisp

2008-08-27 21:58

reporter   ~0019260

Confirmed.

The design intent is that a user CANNOT change their real name to another user's username. For example, if the installation shows real names, any user might change their real name to the name of another user who had no real name set. Thus, they could pose as the second user for malicious purposes.

thraxisp

thraxisp

2008-08-27 22:09

reporter   ~0019261

fixed in Revision: 5528
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5528&view=rev