[ZBX-21813] Creating new user role instead of updating the existing one Created: 2022 Oct 26  Updated: 2024 Apr 10  Resolved: 2023 Mar 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.9, 6.2.3, 6.4.0beta1, 6.4.0beta2, 6.4 (plan)
Fix Version/s: 6.0.15rc1, 6.4.1rc1, 7.0.0alpha1, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Andrejs Verza Assignee: Dace Petra (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
depends on ZBX-21669 It is not possible to filter Audit lo... Closed
Team: Team B
Sprint: Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Open any user role for editing.
  2. Cut the name (leave the field empty).
  3. Click the Update button.
  4. Observe:
    1. The form reloads with error:
      Cannot update user role: Incorrect value for field "name": cannot be empty.
    2. Also, the Add button is displayed instead of the Update button below the form.
  5. Put the name back.
  6. Click the Add button.
  7. Observe:
    1. The form reloads with error:
      Cannot create user role: User role "..." already exists.

Expected:

On errors, still editing the existing user role and not creating a new one.



 Comments   
Comment by Dace Petra (Inactive) [ 2022 Nov 07 ]

Fixed in development branch feature/ZBX-21813-6.0

Comment by Dace Petra (Inactive) [ 2023 Mar 14 ]

Fixed in:

Generated at Tue Nov 04 02:39:13 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.