Refreshing Crypto Tokens page after deleting a token causes another token to be deleted.
I think this can only happen with unused crypto tokens.
EJBCA 7.4.3.2 Community official Docker container
Steps to reproduce:
- Create three soft crypto tokens (e.g. test0, test1, test2).
- Click delete by test0 and confirm.
- Refresh the page. If it asks to resend data click ok.
- test1 should disappear.
- Refresh again.
- test2 should disappear.
I could reproduce this however in the latest main branch. Thanks for reporting the issue. It's due to the "delete" button working on line number, and when deleting one crypto token the rest just moves up so hitting F5 resends a "delete crypto token on line number 6 in the UI view"
That's what I figured as well. I guess the positive is that if a token is in use it will error out. Not sure how often people have a sequential listing of unused tokens.
While annoying, it's not annoying enough to prioritize compared to other issues unfortunately.