-
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
Able to assign group admin to unexisting group #5868
Comments
Setting to OC7 as it's not a showstopper. |
My evil me wants to answer: some devs have no clue about proper database design 👿 But at the end it comes down to the broad support of databases - e.g. MySQL engine MyISAM has no clue about foreign keys |
BTW, wouldn't it be better to add integer autoincrement ID field to the users and groups tables ? |
@MorrisJobke please have a look once you work on user management for 8.1 - THX |
or @LukasReschke. I haven't retried in 8.0 yet |
Still happening on master (8.2 pre-alpha) |
moving to 9.0 |
I can't reprodce this anymore. The user page does not even shot the bug anymore and the subadmin stuff should not also properly handle this. @PVince81 please confirm and close ;) |
Works fine now on master 1b36987 / 9.0 pre-alpha |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected result
At step 6, the non-existing group should not happen yet in the "Group admin" dropdown of the users list.
Actual result
Possible to select the not existing group.
After refresh the dropdown appears empty because it tries to select a value that it not in the dropdown.
The database table oc_group_admin has an entry with the non-existing group.
Versions
OC 6 beta 4
This is not a showstopper, as it doesn't break much.
It is still possible to create group admins.
Is there a reason why we're not using foreign keys to prevent such cases, maybe database compatibility ? @DeepDiver1975
The text was updated successfully, but these errors were encountered: