Bug 28995 - homeShare am Benutzerobjekt kann nicht gelöscht werden.
homeShare am Benutzerobjekt kann nicht gelöscht werden.
Status: RESOLVED DUPLICATE of bug 41172
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.x
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-31 10:33 CET by Felix Botner
Modified: 2018-04-13 13:29 CEST (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
remove (1.07 KB, patch)
2016-01-04 13:18 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-10-31 10:33:52 CET
-> udm users/user modify --dn uid=test1,cn=users,dc=ucs,dc=new \
  --remove homeShare="cn=memberhome,cn=shares,dc=ucs,dc=new"

Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 237, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 394, in doit
    out=_doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 975, in _doit
    out.extend(object_input(module, object, input, append, remove))
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 326, in object_input
    object[key] = [ object[key] ]
  File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 259, in __setitem__
    p=s.parse(value)
  File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 282, in parse
    if not text or not self.regex or self.regex.match( text ) != None:
TypeError: expected string or buffer

Über UMC bekomme ich keine Fehler, aber die Heimatverzeichnisfreigabe ist beim nächsten Öffnen des Benutzerobjekts wieder da.
Comment 1 Florian Best univentionstaff 2016-01-04 13:18:40 CET
Created attachment 7388 [details]
remove

It works using:
udm users/user modify --dn uid=test1,cn=users,dc=ucs,dc=new --set homeShare=

It works also via UMC.

Using --remove only works for lists but homeShare is not a multivalue and its syntax class therefore cannot handle lists. We should prevent "--remove" for non-multivalue fields in UDM-CLI to fix this. Attached patch does this by printing a warning.
Comment 2 Florian Best univentionstaff 2016-05-27 10:58:52 CEST
comment #1 was btw. nonsense.

*** This bug has been marked as a duplicate of bug 41172 ***