webservice : Error codes would be useful
When creating an user with username 'jdoe', I have a message that uid=jdoe already exists with its full DN.
_webservice : The entry 'uid=jdoe,ou=people,dc=x...' already use this 'Login' attribute! _
Two remarks :
- I am wondering why the uid or/and full DN is specified when an entry already exists, rather saying "this username already exists"
- From a webservice perspective, on my websites, I don't want to expose the full DN of my users in errors messages. In the current state, If I don't want to I have no choice but to parse the strings contained in the 'errors' array returned by setfields().
So overall, I think it would be good to think of an better way to handle errors returned by the webservice. The 'errors' arrays could include separate fields for : dn, field name/label, and the errors string.
introducing error codes would also give the opportunity to translate/adapt strings when displaying messages on websites.
Feel free to split this issue if needed, the way it fits the best for you.
(from redmine: issue id 4820, created on 2016-05-30, closed on 2017-05-18)
- Relations:
- duplicates #5137
- Custom Fields:
- Bug in version: 1.0.12
- Support contract: None