Univention Bugzilla – Full Text Bug Listing |
Summary: | Automatic displayName update leads to tracebacks in UCS@school environments | ||
---|---|---|---|
Product: | UCS | Reporter: | Sönke Schwardt-Krummrich <schwardt> |
Component: | UMC - Users | Assignee: | Sönke Schwardt-Krummrich <schwardt> |
Status: | CLOSED FIXED | QA Contact: | Daniel Tröder <troeder> |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, markus.daehlmann, walkenhorst |
Version: | UCS 4.0 | ||
Target Milestone: | UCS 4.0-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | External feedback | |
Max CVSS v3 score: | |||
Bug Depends on: | 38385 | ||
Bug Blocks: |
Description
Sönke Schwardt-Krummrich
2015-09-25 22:01:12 CEST
The old code contained the line ml.append(('displayName', self.oldinfo.get('displayName', [''])[0], new_displayName)) to replace the old value with a new displayName value. Unfortunately, self.oldinfo['displayName'] is always of type string, so the code tries to replace an invalid old_value: e.g. ('displayName', 'S', 'Service') This has now been fixed. univention-directory-manager-modules (10.0.31-17): r63999 | Bug #39409: fixed automatic update of displayName ucs-test (5.0.171-11): r64000 | Bug #39409: improved 28_displayName_update 2015-09-09-univention-directory-manager-modules.yaml: r64002 | Bug #39409: updated YAML r64001 | Bug #39409: updated YAML I was not able to reproduce the problem with the ucs-test script. Even after adding an additional test that only sets the lastname and leaves the firstname empty. Within the customer environment, the problem only occurred if only a lastname was specified at the user object. Merged changes of bugs #38385, #39292 and #39409 to UCS 4.1-0 (yes, they were all missing :-() → r64019 | Bug #38385, #39292, #39409: automatic update of displayName → r64021 | Bug #39409: improved 28_displayName_update → r64020 | Bug #38385: added 28_displayName_update Missing rebuild of univention-directory-manager-modules for UCs 4.1-0 has been catched up: package version is 11.0.2-1.1345.201510061159 OK: code OK: manual test OK: automatic test (ucs-test_5.0.172-2.1243.201510070957): # /usr/share/ucs-test/61_udm-users/28_displayName_update -f OK: YAML |