You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Andrea Patricelli (JIRA)" <ji...@apache.org> on 2019/05/17 14:24:00 UTC

[jira] [Created] (SYNCOPE-1472) Resource association is duplicated on database after update, assign or link operations

Andrea Patricelli created SYNCOPE-1472:
------------------------------------------

             Summary: Resource association is duplicated on database after update, assign or link operations
                 Key: SYNCOPE-1472
                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1472
             Project: Syncope
          Issue Type: Task
          Components: core
    Affects Versions: 2.1.4, 2.0.13
            Reporter: Andrea Patricelli
             Fix For: 2.0.14, 2.1.5, 3.0.0


Executing multiple link or assign or patch (with resource assignment) operartions duplicates entries in syncopeuser_externalresource table.

For example this code run from [rest client|[https://github.com/ilgrosso/syncopeRestClient/tree/SYNCOPE-2_0_X]]
{code:java}
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); }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)