Wireshark-dev: [Wireshark-dev] Minor (bug confusing!) bug in SNMP Users Table editor

From: Chris Janicki <chris.janicki@xxxxxxxxx>
Date: Tue, 14 May 2024 14:35:12 -0400
Hi,

I tried to create a gitlab account to enter this bug, but it refuses my credit card verification step.  Sorry for the email, but I wanted to report before I forget the details.

The problem is simple: Changes to the SNMP Users Table are not accepted until "OK" is pressed, which can lead to a confusing error message.  For example:

1. This is a valid users table.
Valid Table


2. This is an error condition, because two user names are identical AND have the same authentication model.
User Table 2


3. So I press Cancel then try again.  This time, I delete the second row.  Then I change the auth model to SHA1 (which had conflicted with the deleted row).  The error message appears again, and the "Duplicate key" message is now illogical/confusing, because there is only one row. 
Users Table 3


Of course, the work-around is to delete the second row, then press OK (which closes the dialog), then go back in to change the auth model.  But this is not intuitive.  The "fix" is to have the dialog alter its copy of the original table during the editing session, so that data validation occurs on the contents of the displayed table.

I hope that's helpful.  Thanks!