Description
Executing multiple link or assign or patch (with resource assignment) operartions duplicates entries in the SyncopeUser_ExternalResource table.
For example this code run from rest client
for (int i = 0; i < 5; i++) { UserPatch userPatch = new UserPatch(); userPatch.setKey("2c4b5859-f27b-4d84-8b58-59f27bcd8402"); userPatch.getResources().add(new StringPatchItem.Builder().value("pg").build()); userService.update(userPatch); }
creates 5 entries in the table SyncopeUser_ExternalResource.