-
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
Exclude with groups cannot work with groups containing commas #10983
Comments
@MTRichards might not sound that severe but this is blocking #10968 (comment) which fixes three issues that are in the sprint (about loading the group lists with ajax) |
This is likely to happen for the "external storage" groups config as well. |
I decided to go with another approach on that PR, so this issue here is no longer blocking. The TODOs for this ticket is, whenever a group name has a comma in it:
The trouble is that we'd need to change the format how groups are internally stored, so we also need compatibility with the old format. I'm not sure this is adequate for OC 7 and also not sure how likely it is that someone uses a comma in their group names... |
Ok. On your recommendation (and agreeing), updated the tags. |
So does it mean we still want this for OC 7 ? |
I mean... soon |
Sounds like you solved the short term problem, and this is a longer term problem. |
Okay. Let's see how the fix looks like then we can decide whether it's risky or not to backport to OC 7 afterwards. |
I think this has real bad consequences internally - so I would ask @karlitschek for an opinion on the potential impact. Seems to me changing all this is a real potential problem, with room to break things badly. Ideally, not doing this close to launch is a good idea. BUT, this means this bug remains - where commas are creating separate groups.
Ok, and worste case a release note on group names wihtout commas is ok for the short term. Adding the release note tag in case we get there. |
Makes sense. Thanks. |
@PVince81 So do you think it is possible to fix this without this big code change? |
Switching to JSON is a big change with a bigger impact. I didn't have time to look into how many places in the code needed changing. |
@PVince81 OC8.1? |
Yes, it's not a simple change |
added to 8.0 release note |
Now thinking of it, we might not need to keep the code backward compatible because we can auto-fix the configuration in a repair step to make sure it's using the new format. |
Steps to reproduce:
Expected result
Group properly excluded
Actual result
(not tested but guessing) group name is split into two groups "comma" and "group", so exclusion cannot work.
Note that other places like the "enable app for groups" use JSON to store the groups array.
The "exclude sharing for groups" feature need to be fixed to also use JSON.
CC @schiesbn
The text was updated successfully, but these errors were encountered: