Bug 50074 - UMC Fields for Shares- Advanced Settings - Samba Permissions add confusing ""
UMC Fields for Shares- Advanced Settings - Samba Permissions add confusing ""
Status: RESOLVED DUPLICATE of bug 40599
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
: 18324 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-08-28 11:17 CEST by Christian Völker
Modified: 2022-04-27 10:30 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2019082421000214
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 Christian Völker univentionstaff 2019-08-28 11:17:29 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...
Comment 1 Florian Best univentionstaff 2019-08-28 11:22:58 CEST

*** This bug has been marked as a duplicate of bug 40599 ***
Comment 2 Florian Best univentionstaff 2022-04-26 22:42:21 CEST
A fix for this is part of the MR https://git.knut.univention.de/univention/ucs/-/merge_requests/360.
Comment 3 Florian Best univentionstaff 2022-04-27 10:30:25 CEST
*** Bug 18324 has been marked as a duplicate of this bug. ***