Univention Bugzilla – Full Text Bug Listing |
Summary: | Unknown object class prevents modifying user | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UDM (Generic) | Assignee: | Johannes Keiser <keiser> |
Status: | CLOSED FIXED | QA Contact: | Florian Best <best> |
Severity: | normal | ||
Priority: | P5 | CC: | klaeser, wiesenthal |
Version: | UCS 4.1 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.2-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=31857 | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 5: Major Usability: Impairs usability in key scenarios |
Who will be affected by this bug?: | 2: Will only affect a few installed domains | How will those affected feel about the bug?: | 2: A Pain – users won’t like this once they notice it |
User Pain: | 0.114 | Enterprise Customer affected?: | Yes |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | 2016100821000442, 2016101621000141, 2016073121000628, 2016071421000562, 2016121321000652, 2016120221000333, 2017031321000293, 2017072021000478, 2017072821000472 | Bug group (optional): | Error handling, External feedback, Usability |
Max CVSS v3 score: | |||
Attachments: | patch |
Description
Florian Best
2016-07-15 11:51:43 CEST
Reported again, 4.1-2 errata220 (Vahr) Reported again, 4.1-3 errata282 (Vahr) Reported again, 4.1-3 errata292 (Vahr) It was always reported by the same UUID. Stumbled over it. Set the "LDAP object class" of an extended attribute to a non-existing class name. Arguably a user error and will hardly happen in non-dev environments. Still, the error message is a bit vague, the extended attribute is invalid, but you can save it. Introduced with Bug#41207? (In reply to Dirk Wiesenthal from comment #4) > Stumbled over it. Set the "LDAP object class" of an extended attribute to a > non-existing class name. Thank you! :) > Arguably a user error and will hardly happen in non-dev environments. Still, > the error message is a bit vague, the extended attribute is invalid, but you > can save it. How should we handle this? A user friendly error message? Or ignoring the object class and print a warning to the logfile? > Introduced with Bug#41207? I don't think so. Well, yes now there is a traceback while prior would have been a simple error message: "LDAP Error: Unknown object class: foo". Reported again, 4.1-4 errata353 (Vahr) Created attachment 8334 [details]
patch
The patch restores the previous behavior. Instead of a traceback is shown the error message "The LDAP object could not be saved: LDAP Error Undefined attribute type: foobar: attribute type undefined" is shown.
It seems the univentionFreeAttributes[1-10] attributes are sometimes entered as object class when adding a extended attribute. This leads to this error. We should in that case print a human readable error message explaining the situation. Version: 4.1-4 errata406 (Vahr) Remark: öffnen eines Bestehenden Users in der Benutzerverwaltungund speichern ohne änderung (In reply to Florian Best from comment #7) > Created attachment 8334 [details] > patch > > The patch restores the previous behavior. Instead of a traceback is shown > the error message "The LDAP object could not be saved: LDAP Error Undefined > attribute type: foobar: attribute type undefined" is shown. Applied patch: r 80628 univention-directory-manager-modules (12.0.17-27) * Bug #41802: Applied patch from Folrian Best - Show error message instead of a traceback when saving an extended attribute with non-existing LDAP object class YAML: r 80636 OK: the error message is now more clear OK: YAML (adjusted in r80648) Reported again, 4.2-0 errata29 (Lesum) Remark: Created a custom field as described here (http://docs.software-univention.de/manual-4.2.html#central:extendedattrs). Went to user page to add info to that field, and got the error message you see here. Please advise. Thank you. Reported again, 4.1-4 errata439 (Vahr) |