Bug 21706 - Extended Attributes können nicht über udm-cli gelöscht werden (TypeError: expected string or buffer)
Extended Attributes können nicht über udm-cli gelöscht werden (TypeError: exp...
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: UDM - Extended Attributes
UCS 2.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-03 11:35 CET by Felix Botner
Modified: 2018-04-13 13:29 CEST (History)
2 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 Felix Botner univentionstaff 2011-03-03 11:35:59 CET
Folgendes ext. Att. angelegt

eval "$(ucr shell)"

univention-directory-manager settings/extended_attribute create $@ --ignore_exists \
 --position "cn=custom attributes,cn=univention,$ldap_base" \
 --set name="test1" \
 --set shortDescription="test1" \
 --set longDescription="test1" \
 --set tabName="test1" \
 --set tabPosition=1 \
 --set module="users/user" \
 --set syntax="integer" \
 --set multivalue=0 \
 --set valueRequired=0 \
 --set mayChange=1 \
 --set doNotSearch=1 \
 --set objectClass="univentionFreeAttributes" \
 --set ldapMapping="univentionFreeAttribute1"


Dann kann ich dies per udm-cli setzen, jedoch nicht löschen.

-> udm users/user modify --dn uid=Administrator,cn=users,dc=univention,dc=qa \
   --set test1=111
Object modified: uid=Administrator,cn=users,dc=univention,dc=qa


-> udm users/user modify --dn uid=Administrator,cn=users,dc=univention,dc=qa \
   --remove test1=111
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 233, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/python2.4/site-packages/univention/admincli/admin.py", line 903, in doit
    out.extend(object_input(module, object, input, append, remove))
  File "/usr/lib/python2.4/site-packages/univention/admincli/admin.py", line 303, in object_input
    object[key] = [ object[key] ]
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 238, in __setitem__
    p=s.parse(value)
  File "/usr/lib/python2.4/site-packages/univention/admin/syntax.py", line 274, in parse
    if self._re.match(text) != None:
TypeError: expected string or buffer

Mit anderen Attributen geht das:

-> udm users/user modify --dn uid=Administrator,cn=users,dc=univention,dc=qa \
  --set firstname=gaa
Object modified: uid=Administrator,cn=users,dc=univention,dc=qa

-> udm users/user modify --dn uid=Administrator,cn=users,dc=univention,dc=qa \
   --remove firstname=gaa
Object modified: uid=Administrator,cn=users,dc=univention,dc=qa

Über den Web UDM kann das ext. Attr. aber gelöscht werden.
Comment 1 Stefan Gohmann univentionstaff 2013-03-24 17:34:38 CET
Die Integer Syntax scheint bei den Extended Attributes keinen leeren Wert zu erlauben. Nach dem Setzen der Syntax auf string funktioniert es.
Comment 2 Stefan Gohmann univentionstaff 2016-04-25 07:53:01 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.
Comment 3 Florian Best univentionstaff 2016-05-19 10:35:07 CEST
Fixed by Bug #32321.

http://errata.software-univention.de/ucs/4.1/68.html