mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🐛 Bug Report: Cannot modify or delete non-LDAP user group #364
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EweSparky on GitHub.
Reproduction steps
I cannot modify or delete local-to-Pocket ID user groups. I do not have LDAP configured.
Expected behavior
I should be able to modify or delete any user group that is not mapped to an LDAP-provided group.
Actual Behavior
/settings/admin/user-groups, click on𐄁𐄁𐄁and selectEdit.Savebutton.LDAP user groups can't be updated./settings/admin/user-groups, click on𐄁𐄁𐄁and selectDelete.User group deleted successfully.LDAP user groups can't be updated./settings/admin/application-configurationand confirm all LDAP settings are blank.Version and Environment
Docker version 27.5.1, build 9f9e405
Docker Compose version v2.32.4
Pocket ID 0.27.2
Log Output
[GIN] 2025/02/02 - 04:17:02 | 200 | 529.276µs | 127.0.0.1 | GET "/api/user-groups"
[GIN] 2025/02/02 - 04:17:02 | 200 | 544.873µs | 127.0.0.1 | GET "/api/user-groups"
[GIN] 2025/02/02 - 04:17:06 | 403 | 914.382µs | 10.10.70.32 | DELETE "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
Error #01: LDAP user groups can't be updated [GIN] 2025/02/02 - 04:17:06 | 403 | 952.045µs | 10.10.70.32 | DELETE "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
Error #01: LDAP user groups can't be updated
[GIN] 2025/02/02 - 04:17:27 | 200 | 460.027µs | 127.0.0.1 | GET "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
[GIN] 2025/02/02 - 04:17:27 | 200 | 477.373µs | 127.0.0.1 | GET "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
[GIN] 2025/02/02 - 04:17:27 | 200 | 514.152µs | 10.10.70.32 | GET "/api/users"
[GIN] 2025/02/02 - 04:17:27 | 200 | 536.294µs | 10.10.70.32 | GET "/api/users"
[GIN] 2025/02/02 - 04:17:27 | 200 | 347.796µs | 10.10.70.32 | GET "/api/custom-claims/suggestions"
[GIN] 2025/02/02 - 04:17:27 | 200 | 365.95µs | 10.10.70.32 | GET "/api/custom-claims/suggestions"
[GIN] 2025/02/02 - 04:17:33 | 403 | 1.114817ms | 10.10.70.32 | PUT "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
Error #01: LDAP user groups can't be updated
[GIN] 2025/02/02 - 04:17:33 | 403 | 1.159172ms | 10.10.70.32 | PUT "/api/user-groups/2fb9aa90-a5bd-4dc4-90c3-e403f8b4b1de"
Error #01: LDAP user groups can't be updated
@EweSparky commented on GitHub:
I only set up Pocket ID and created the groups yesterday. It's never been connected to LDAP.
@daniel-tp commented on GitHub:
I also have a similar issue, I get "Name is already in use" when I try to edit any of the group names/friendly names, even to a random string. I have never used LDAP.
@kmendell commented on GitHub:
Im guessing this is due to the ldap_id attribute on the groups , if its only happening on groups made earlier than the ldap update version.
@EweSparky commented on GitHub:
Yeah, I can delete a newly created group. I use the default SQLite database.
@stonith404 commented on GitHub:
Can you edit a newly created group? Do you use Postgres or Sqlite?
@stonith404 commented on GitHub:
Thanks for reporting this bug. This should be fixed in
v0.28.0.