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
Dieser Bug wird auch von 50_samba/10samba-share-options.sh getriggtert. Habe dort einen Verweis auf diesen Bug eingefügt.
Created attachment 4624 [details] patch für handlers.shares.share.insertQuotes
Wenn dieser Bug gefixt wird, kann der Workaround für den Testcase (Bug 28360) wieder entfernt werden.
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.
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