Red Hat Bugzilla – Bug 695555
Transaction failed error when registering a user
Last modified: 2014-08-04 18:03:42 EDT
Description of problem:
After having registered a user, I can see 'Transaction failed error' if I add a new user that have same name and email but different Username.
Version-Release number of selected component (if applicable):
Zanata version 1.3-alpha-1 (20110330-1649).
Steps to Reproduce:
1. Add a new user and complete email activation
2. Add a new user whose name and email are the same but Username is different
* Transaction failed
* Unexpected error. Please try again.
The system will accept the user added or 'User already registered' depending on Zanata spec.
Assigning to Scrum product owner for prioritisation.
There should ideally be a check to ensure that an email address is mapped to only one user. The email address would be used for various purposes including account reset if required and should not be duplicated.
This error is generated because UI validation logic fails to check for duplicate email addresses, but the database *is* preventing the duplicate email address from being stored, thus causing an error.
Note that this hasn't been a high priority before now because internal authentication is only used in test environments, not in production.
Bug reproduced with Verion 1.4-SNAPSHOT (20110906-1403), internal authentication.
Added email validation when registering a new user with internal authentication. Zanata will now validate that the email address is well formed, as well as that the address is not already taken by another user before allowing the registration attempt to continue.
VERIFIED in Zanata version 1.5.0-alpha-2-SNAPSHOT (20120220-1431). Validation on duplicate email triggers to prevent this bug from happening.