Univention Bugzilla – Bug 50074
UMC Fields for Shares- Advanced Settings - Samba Permissions add confusing ""
Last modified: 2022-04-27 10:30:25 CEST
The UMC automatically adds " when entering a value containing a space. Editing existing entries with " adds another couple of these. Trying to delete entries results in error. Need to have entries with no " only there, first. Steps to reproduce: 1. In UMC go to Shares- Advanced Settings - Samba Permissions In the field 'Restrict write access to these users/groups' enter the following text (field expected to be empty at this stage!): 'Domain Users, Backup Operators' then "Save" 2. Reopen the screen and you will notice it got (correctly) transformed to '"Domain Users", "Backup Operators"' 3. Remove the ',"Backup Operators" and "Save" 4. Reopen the screen again and the entry got converted to '""Domain Users""' with double quotes! 5. Add a user (or group) to the field (ie by appending ",cvoelker") 6. Reopen again and you will see: '"""Domain Users""", cvoelker' with now triple quotes. 7. Try to remove all entries at once by emptying the field and "Save" results in a pop-up: 'Notification: The LDAP object could not be saved: LDAP-Fehler No such attribute: modify/delete: univentionShareSambaWriteList: no such value' and the field is not emptied. 8. To empty the field you need to remove alle entries containing quotes and leave a single value with no quotes. (ie 'cvoelker'). After "Save" and reopening the screen UMC will allow to delete the remaining entry. So two issues here: A. Entries already containing quotes ('"') will get added them again B. A filed containing entries with quotes can not be emptied directly I assume the above applies for several input fields in UMC...
*** This bug has been marked as a duplicate of bug 40599 ***
A fix for this is part of the MR https://git.knut.univention.de/univention/ucs/-/merge_requests/360.
*** Bug 18324 has been marked as a duplicate of this bug. ***