🐛 Bug Report: Cannot modify or delete non-LDAP user group #364

Closed
opened 2025-10-07 00:12:02 +03:00 by OVERLORD · 6 comments
Owner

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

  1. Go to /settings/admin/user-groups, click on 𐄁𐄁𐄁 and select Edit.
  2. Try to modify the group friendly name and name, then click the first Save button.
  3. A popup appears saying: LDAP user groups can't be updated.
  4. Go back to /settings/admin/user-groups, click on 𐄁𐄁𐄁 and select Delete.
  5. Confirm the deletion action.
  6. A popup appears saying: User group deleted successfully.
  7. Another popup immediately appears underneath the first saying: LDAP user groups can't be updated.
  8. Go to /settings/admin/application-configuration and 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

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 1. Go to `/settings/admin/user-groups`, click on `𐄁𐄁𐄁` and select `Edit`. 2. Try to modify the group friendly name and name, then click the first `Save` button. 3. A popup appears saying: `LDAP user groups can't be updated`. 4. Go back to `/settings/admin/user-groups`, click on `𐄁𐄁𐄁` and select `Delete`. 5. Confirm the deletion action. 6. A popup appears saying: `User group deleted successfully`. 7. Another popup immediately appears underneath the first saying: `LDAP user groups can't be updated`. 8. Go to `/settings/admin/application-configuration` and 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
OVERLORD added the bug label 2025-10-07 00:12:02 +03:00
Author
Owner

@EweSparky commented on GitHub:

I only set up Pocket ID and created the groups yesterday. It's never been connected to LDAP.

@EweSparky commented on GitHub: I only set up Pocket ID and created the groups yesterday. It's never been connected to LDAP.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
Author
Owner

@EweSparky commented on GitHub:

Yeah, I can delete a newly created group. I use the default SQLite database.

@EweSparky commented on GitHub: Yeah, I can delete a newly created group. I use the default SQLite database.
Author
Owner

@stonith404 commented on GitHub:

Can you edit a newly created group? Do you use Postgres or Sqlite?

@stonith404 commented on GitHub: Can you edit a newly created group? Do you use Postgres or Sqlite?
Author
Owner

@stonith404 commented on GitHub:

Thanks for reporting this bug. This should be fixed in v0.28.0.

@stonith404 commented on GitHub: Thanks for reporting this bug. This should be fixed in `v0.28.0`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#364