Univention Bugzilla – Full Text Bug Listing |
Summary: | KeyError: 'reinstalltext' when saving DC slave | ||
---|---|---|---|
Product: | UCS | Reporter: | Florian Best <best> |
Component: | UMC - Computers | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Drees Dormann <dormann> |
Severity: | normal | ||
Priority: | P5 | CC: | jmm, petersen, s.anders |
Version: | UCS 4.0 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.0-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=35537 | ||
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): | Error handling, External feedback | |
Max CVSS v3 score: | |||
Attachments: | reinstalltext.patch |
Description
Florian Best
2015-01-19 08:50:00 CET
This currently breaks server-password-change at least at one internal system -> metod Reported 2015020421000252 "ändern wir den Rechner 'Groupware' z.B. im Attribut "Bescheibung" in der UMC-Weboberfläche" computers/domaincontroller_slave which exists in LDAP The full ldif is at the mentioned ticket. This was introduced by Bug #35537 in svn r54938. The 'reinstalltext' property has been removed. It still exists in the layout and in the mapping. It can be reproduced by adding the LDAP attribute "univentionServerInstallationText" to a computer object and modifying it then. From my point of view this is more serious as "error handling" indicates - it's a regression and it prevents basic features like server password change (and quite certainly more) to work. What about a rejoin? Will it fail because the object is not editable? Created attachment 6649 [details]
reinstalltext.patch
Attached a patch which can be applied with the following command:
patch -d /usr/share/pyshared/univention/admin/ -p7 -i /root/reinstalltext.patch
Fixed by applying the patch. Fix: svn r57943 YAML: 2015-02-10-univention-directory-manager-modules.yaml Drees, could you do the QA for this? Please reproduce with the following computer types: computers/domaincontroller_backup computers/domaincontroller_master computers/domaincontroller_slave computers/memberserver To reproduce you can set the LDAP attribute of the computers using ldapvi: e.g. install ldapvi on your system and execute the command there: eval "$(ucr shell)"; ldapvi --discover --host localhost:7389 -D "uid=Administrator,cn=users,$ldap_base" -w univention Then add to the specific objects: univentionServerInstallationText: foobar Having this should cause the above traceback when trying to modify the object via UMC / CLI. Tested for following object types: computers/domaincontroller_backup computers/domaincontroller_master computers/domaincontroller_slave computers/memberserver Traceback could be reproduced without patch. After patch was applied the error didn't occur anymore. Yaml OK |