Closed sopgreg closed 1 year ago
This is now finally also fixed in v2.2.0. The new rule to identify a "double PMode" is either by the same PMode ID (ID is always unique) or if all fields (ID type, ID value, role, username, password) from Initiator and Sender are identical.
I got this exception when changing the role of the initiator for a given PMode-ID, but this can be verified with other changes as well. The issue can be reproduced as follows:
A
IllegalArgumentException
will be thrown incom.helger.dao.wal.AbstractMapBasedWALDAO#_addItem
The issue likely occurs because the check, if the PMode already exists in the current list of PModes, uses a different filter to check for and does not find the PMode already in the map, and then continues to create a new item (instead of an update).