oxTrust need to display and log explicit warnings about email non-uniqueness
See original GitHub issueEnvironment: Ubuntu 14.04, gluu-server-3.1.1-1-8~trusty+Ub14.04
Preconditions:
- A valid xls file ready to be imported via oxTrust “Import People” feature, containing 5-10 people with unique usernames, but at least some of them containing non-unique emails (either the file itself contains duplicate email, or such email is already assigned to some user entry existing in Gluu’s LDAP)
Steps to reproduce:
- Log in to web UI as admin user.
- Move to “Users -> Import People” page
- Try to validate and import the xls file mentioned above
- Move to “Users -> Add Person” page
- Try to add a user with uid already assigned to another entry in LDAP tree, then try to add a user with unique uid, but with email attribute already assigned to existing entry.
Result:
At step 3) import fails and a misguiding error message is displayed, stating it’s because of non-unique uid
attributes, while in fact it’s caused by non-unique mail
attibutes. At step 5) for case when uid
is not unique error message clearly states that, while when mail
is not unique it just rejects to create user without giving a hint why. oxtrust.log
is not very helpful either in those cases. The requirement for email to be unique is new feature of Gluu CE 3.x and wasn’t present in 2.x packages, that’s why oxTrust perhaps is not ready to handle it.
Expected result:
In both cases error messages must clearly state which of those 2 attributes is not unique (or at least mention that one of them or both are not unique, while they should be). It also would help with troubleshooting if a descriptive error message would start to be registered in oxtrust.log
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
@willow9886 : https://github.com/GluuFederation/oxTrust/issues/813
Got it. @mzico feel free to open some issues on this for 3.1.3 or 3.2.0.