Bug 41658 - fix UDM usage in AppCenter
fix UDM usage in AppCenter
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1-2-errata
Assigned To: Florian Best
Dirk Wiesenthal
Depends on:
Blocks: 38110
  Show dependency treegraph
Reported: 2016-06-24 11:08 CEST by Florian Best
Modified: 2016-09-22 06:54 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-06-24 11:08:59 CEST
Some adaptions in the AppCenter code are necessary to fix Bug #38110.

+++ This bug was initially created as a clone of Bug #38110 +++


# udm groups/group modify --dn "cn=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base"
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 222, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 393, in doit
  File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 1042, in _doit
    if 'univentionPolicyReference' not in lo.get(dn,['objectClass'])['objectClass']:
KeyError: 'objectClass'

# udm users/user modify --dn "cn=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base"
Value is required: The property Primary group is required

# udm container/dc modify --dn "dc=notexistingobject,$ldap_base" --policy-reference="cn=default-umc-all,cn=UMC,cn=policies,$ldap_base"
No such object: No such object

Please also see bug38109
Comment 1 Florian Best univentionstaff 2016-06-24 13:57:00 CEST
univention-appcenter (5.0.21-13):
r70610 | Bug #41658: fix use of UDM

r70612 | YAML Bug #41658
r70611 | YAML Bug #41658
Comment 2 Dirk Wiesenthal univentionstaff 2016-06-29 10:19:37 CEST
Code: OK
Comment 3 Janek Walkenhorst univentionstaff 2016-06-29 12:26:43 CEST