Bug 15823 - Wert eines extended attributs an einem udm-Objekt lässt sich nicht nachträglich mit modify modifizieren
Wert eines extended attributs an einem udm-Objekt lässt sich nicht nachträgli...
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UDM
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Hofmann
Christoph Niemann
:
Depends on: 15586
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-06 10:51 CEST by Sönke Schwardt-Krummrich
Modified: 2023-03-25 06:53 CET (History)
3 users (show)

See Also:
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2009-10-06 10:51:32 CEST
Bitte dafür einen Test erstellen

> Bug #15586 comment 10:
Das Problem war, dass die "objectClass" mit einer falschen
Groß-/Kleinschreibung angegebene wurde ("UniventionFreeAttributes" anstatt
"univentionFreeAttributes")

Da Objectklassen jedoch case-insensitive sind werden die OCs für den Vergleich
nach lowercase konvertiert.

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

Stacktrace:
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server",
line 231, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/python2.4/site-packages/univention/admincli/admin.py", line
905, in doit
    dn=object.modify()
  File
"/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line
317, in modify
    return self._modify(modify_childs,ignore_license=ignore_license)
  File
"/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line
797, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/python2.4/site-packages/univention/admin/uldap.py", line 355,
in modify
    raise univention.admin.uexceptions.ldapError, msg[0]['desc']
ldapError: Type or value exists


Es folgen 3 Befehle zur Reproduktion:

univention-directory-manager settings/extended_attribute create
--position="cn=custom attributes,cn=univention,dc=univention,dc=test" --set
name="yivqvick" --set shortDescription="Test Short Description" --set
CLIName="fiirdvmx" --set module="computers/managedclient" --set mayChange="1"
--set objectClass="UniventionFreeAttributes" --set
ldapMapping="univentionFreeAttribute7"

univention-directory-manager computers/managedclient create
--position="cn=computers,dc=univention,dc=test" --set
name="l38pkgkzc3ckibhgj290x" --set fiirdvmx="foo"

univention-directory-manager computers/managedclient modify --dn
"cn=l38pkgkzc3ckibhgj290x,cn=computers,dc=univention,dc=test" --set
fiirdvmx="barojgioega"
Comment 1 Daniel Hofmann univentionstaff 2009-10-07 11:41:46 CEST
Testfall check_modify_with_objectclass_with_incorrect_case in ucs-test-udm-extendedattributes hinzugefügt.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2009-10-08 09:49:21 CEST
Bitte alle Exitcodes der Tests nocheinmal überprüfen und ggf. anpassen:
Wenn der Bug mit Bugnummer bekannt und noch nicht gefixt ist, sollte 121 zurückgegeben werden. 
Ist der Bug mit Bugnummer bekannt, gefixt und tritt trotzdem auf, sollte 111 zurückgegeben werden.
Für andere Fehlerfälle siehe 
https://billy.knut.univention.de/uniwiki/index.php/Ucs-test#ucs-test-Skript-Statuscodes
Comment 3 Daniel Hofmann univentionstaff 2009-10-14 09:25:09 CEST
Schon länger im Zuge mit #14202 #14206 #11994 #14210 gefixt, aber vergessen zu schließen.
Comment 4 Christoph Niemann univentionstaff 2009-11-20 12:03:28 CET
Testcase funktioniert und hat die richtigen Rückgabewerte