question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oxTrust need to display and log explicit warnings about email non-uniqueness

See original GitHub issue

Environment: Ubuntu 14.04, gluu-server-3.1.1-1-8~trusty+Ub14.04

Preconditions:

  1. 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:

  1. Log in to web UI as admin user.
  2. Move to “Users -> Import People” page
  3. Try to validate and import the xls file mentioned above
  4. Move to “Users -> Add Person” page
  5. 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
willow9886commented, Jan 11, 2018

Got it. @mzico feel free to open some issues on this for 3.1.3 or 3.2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Gluu Server 3.1.3 Docs
The most common use cases for the Gluu Server include single sign-on ... #787 oxTrust need to display and log explicit warnings about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found