-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group names containing vertical bar cannot be used in "exclude groups from sharing" #31836
Comments
How many of these "special character in group name" problems are there? |
GitMate.io thinks possibly related issues are #10307 (Exclude Groups from Sharing), #20473 (If a user belongs to a group that has not been set in the excluded groups from sharing, he can share files), #25320 ('Exclude groups from sharing' doesn't work if user belongs to more groups), #17346 (Exclude group from sharing after a share was created), and #10983 (Exclude with groups cannot work with groups containing commas). |
Implode with vertical bar separator here: |
PR #10968 introduced the vertical bar implode code, which is better than the previous comma separator. The answer to my questions #31836 (comment) will determine the way forward. |
From what I heard, all kinds of weird characters can come from various flavors of LDAP servers. We still do have the option to say "yes, maybe, but OC doesn't support that". Now with the latest discussions related to special chars in groups, let's include @tomneedham @butonic in the discussion... |
the question could also be rephrased: is there any safe character that is guaranteed to never appear in a LDAP group name ? such char could then be used as separator |
use a regex to split the value groups with |
And when there is a group with |
This issue has been automatically closed. |
Steps to reproduce
vertical|bar
vertical|bar
and then exxit the box (to save)Expected behaviour
Group
vertical|bar
should be shown in the list of excluded groups.Also note: on the user management page, the users in group
vertical|bar
do not show.Actual behaviour
Groups
vertical
andbar
are shown as separate group names.Server configuration
Current core
stable10
Note: because of issue #31739 the whole "exclude groups from sharing" UI is broken in core
master
So you currently have to use
stable10
to see the issue reported here.The text was updated successfully, but these errors were encountered: