-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
User groups with "/" character in the name can be deleted, but reappear #6032
Comments
Will this solve the problem? |
As long as this bug persists, is there a workaround to delete an empty user group manually? Can it be done directly in the database without harm? |
Should anyone else want to get rid of a user group with a "/" in the name you might try this at your own risk: Remove all users from the group and delete it in the database table "xxxxx_groups". |
Our route matcher is decoding our url. Nonetheless, we could also do like the users: have id and name as separate data. And then we could add a check to make sure the groupid always contains alphabetical characters :) @rullzer @MorrisJobke @blizzz? Thoughts? |
@skjnldsv this should not have been allowed since the beginning, but sigh, we need to live with it. and whatever we do, we need to be backwards compatible, as we cannot change existing group ids. The logic for displaynames in groups is already there, it just does not have any use in the UI so far, afaik. I am afraid double-encoding is what we should do know, if that works. Also more of an ugly hack :( |
@blizzz yeah it works, but it's a terrible alternative! :/ |
This only makes sense if we decide to change some fundamentals (at least group id renaming) including a way that requires apps to support this mechanism. Otherwise you can never assume groups with "/" in their id are gone. There's no quick way to accomplish this reasonably. Also, I doubt the case is worth the huge effort. |
We should then change our api. If we switch to a |
We cannot just change it, but adding this other route additionally (and phasing the other out over time) would work. Although it would uglify the API. Well, something's got to give. Then i am favouring avoiding escaping multiple times and go with the API modification. Other opinons? @MorrisJobke @rullzer |
We can deprecate old route and in a few new versions completely remove it. I already did some similar changes for 14. :) |
that's what i mean :) |
fixes #6032 Now since the match is greedy it will also eat the / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
See #9814 for my current solution ;) |
fixes #6032 Now since the match is greedy it will also eat the / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
fixes #6032 Now since the match is greedy it will also eat the / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Steps to reproduce
Expected behaviour
Group should be permanently deleted
Actual behaviour
Deleted Group reappears
Server configuration
Operating system:
Linux dd42018 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Web server:
Shared Webhosting
Database:
mySQL 5.7.15
PHP version:
5.6.30
Nextcloud version: (see Nextcloud admin page)
12.0.1 stable
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from fresh 12.0.0
I hope this is not already filed as an issue. At least I could not find it.
The text was updated successfully, but these errors were encountered: