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:26:00 UTC

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

     [ https://issues.apache.org/jira/browse/SYNCOPE-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Patricelli updated SYNCOPE-1472:
---------------------------------------
    Description: 
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}
creates 5 entries in table `syncopeuser_externalresource`.

 

  was:
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}


> 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.0.13, 2.1.4
>            Reporter: Andrea Patricelli
>            Priority: Major
>             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}
> creates 5 entries in table `syncopeuser_externalresource`.
>  



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