Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated search for same computer results in error #17

Closed
Pinkbyte opened this issue Oct 12, 2023 · 0 comments
Closed

Repeated search for same computer results in error #17

Pinkbyte opened this issue Oct 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Pinkbyte
Copy link

Steps to reproduce:

  1. search for some computer, that is present in Active Directory (for example - TEST1);
  2. select computer, adding it to the list below search prompt;
  3. Hit 'X' to delete computer from list below search prompt;
  4. search again for TEST1;
  5. try to add it again to the list;

Result - nothing happens on client - computer is not added to the list.
On server there is error in logs:

System.ArgumentException: An item with the same key has already been added. Key: TEST
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at LAPS_WebUI.Pages.LAPS.OnSelectedItemChangedAsync(ADComputer value) in /src/Pages/LAPS.razor.cs:line 35

LAPS-WebUI version: 1.5.5, used from docker container

@Pinkbyte Pinkbyte changed the title Repeat search of same computer results in error Repeated search of same computer results in error Oct 12, 2023
@Pinkbyte Pinkbyte changed the title Repeated search of same computer results in error Repeated search for same computer results in error Oct 12, 2023
@Seji64 Seji64 added the bug Something isn't working label Oct 12, 2023
@Seji64 Seji64 closed this as completed in 4a84193 Oct 12, 2023
Seji64 added a commit that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants