🐛 Bug Report: Cant create more then one group #399

Closed
opened 2025-10-09 16:44:21 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @myhrmans on GitHub.

Reproduction steps

  1. Run 0.25.1
  2. Create a group.
  3. Try creating another

Expected behavior

Another group should be created.

Actual Behavior

pocket-id-1  | 2025/01/20 14:38:11 /app/backend/internal/service/user_group_service.go:68 duplicated key not allowed
pocket-id-1  | [0.221ms] [rows:0] INSERT INTO `user_groups` (`id`,`created_at`,`friendly_name`,`name`,`ldap_id`) VALUES (?,?,?,?,?)
pocket-id-1  | [GIN] 2025/01/20 - 14:38:11 | 400 |     559.235µs |  81.226.210.194 | POST     "/api/user-groups"
pocket-id-1  | Error #01: name is already in use
pocket-id-1  | [GIN] 2025/01/20 - 14:38:11 | 400 |     574.995µs |  81.226.210.194 | POST     "/api/user-groups"
pocket-id-1  | Error #01: name is already in use

Image

Originally created by @myhrmans on GitHub. ### Reproduction steps 1. Run 0.25.1 2. Create a group. 3. Try creating another ### Expected behavior Another group should be created. ### Actual Behavior ``` pocket-id-1 | 2025/01/20 14:38:11 /app/backend/internal/service/user_group_service.go:68 duplicated key not allowed pocket-id-1 | [0.221ms] [rows:0] INSERT INTO `user_groups` (`id`,`created_at`,`friendly_name`,`name`,`ldap_id`) VALUES (?,?,?,?,?) pocket-id-1 | [GIN] 2025/01/20 - 14:38:11 | 400 | 559.235µs | 81.226.210.194 | POST "/api/user-groups" pocket-id-1 | Error #01: name is already in use pocket-id-1 | [GIN] 2025/01/20 - 14:38:11 | 400 | 574.995µs | 81.226.210.194 | POST "/api/user-groups" pocket-id-1 | Error #01: name is already in use ``` ![Image](https://github.com/user-attachments/assets/71d87861-e46b-476e-b8e2-2ed55b750d7e)
OVERLORD added the bug label 2025-10-09 16:44:21 +03:00
Author
Owner

@myhrmans commented on GitHub:

Fixed in 0.26.0

@myhrmans commented on GitHub: Fixed in 0.26.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-2#399