Bug 11972 - Das Setzen der Variable "sambaWriteList" über udm modify funktioniert nicht.
Summary: Das Setzen der Variable "sambaWriteList" über udm modify funktioniert nicht.
Status: CLOSED WORKSFORME
Alias: None
Product: UCS
Classification: Unclassified
Component: UDM - CLI
Version: UCS 2.1
Hardware: All Linux
: P4 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-14 14:33 CEST by Felix Botner
Modified: 2019-03-09 23:07 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):
Customer ID:
Max CVSS v3 score:
requate: Patch_Available+


Attachments
patch für handlers.shares.share.insertQuotes (589 bytes, patch)
2012-08-29 12:05 CEST, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2008-08-14 14:33:00 CEST
Samba share eingerichtet, dann folgenden Befehl abgesetzt:

   -> udm shares/share modify --dn="cn=sambatest,dc=uni" \
      --set sambaWriteList=root

führt zu 

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 892, in doit
    if object.hasChanged(input.keys()) or object.hasChanged(append.keys()) or object.hasChanged(remove.keys()) or parsed_append_options or parsed_options:
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 121, in hasChanged
    if self.hasChanged(i):
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/__init__.py", line 118, in hasChanged
    return not univention.admin.mapping.mapCmp(self.mapping, key, self.oldinfo.get(key, ''), self.info.get(key, ''))
  File "/usr/lib/python2.4/site-packages/univention/admin/mapping.py", line 125, in mapCmp
    return map[1](old) == map[1](new)
  File "/usr/lib/python2.4/site-packages/univention/admin/handlers/shares/share.py", line 729, in insertQuotes
    if new_entry[0]=="@":
IndexError: string index out of range
Comment 1 Daniel Hofmann univentionstaff 2010-08-19 16:32:49 CEST
Dieser Bug wird auch von 50_samba/10samba-share-options.sh getriggtert. Habe dort einen Verweis auf diesen Bug eingefügt.
Comment 2 Arvid Requate univentionstaff 2012-08-29 12:05:16 CEST
Created attachment 4624 [details]
patch für handlers.shares.share.insertQuotes
Comment 3 Arvid Requate univentionstaff 2012-08-29 12:27:19 CEST
Wenn dieser Bug gefixt wird, kann der Workaround für den Testcase (Bug 28360) wieder entfernt werden.
Comment 4 Stefan Gohmann univentionstaff 2014-02-18 21:36:36 CET
This issue has been filed against UCS 2.1.

UCS 2.1 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 5 Florian Best univentionstaff 2019-03-09 23:07:27 CET
root@app:~# udm shares/share create --set sambaWriteList=root --set name=foo --set host=localhost --set path=/
Object created: cn=foo,dc=tab,dc=dev
root@app:~# udm shares/share modify --dn cn=foo,dc=tab,dc=dev --set sambaWriteList=xxx
Object modified: cn=foo,dc=tab,dc=dev