syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-1472) Resource association is duplicated on database after update, assign or link operations
Date Tue, 21 May 2019 14:01:00 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844863#comment-16844863
] 

ASF subversion and git services commented on SYNCOPE-1472:
----------------------------------------------------------

Commit 5664ec94ccb233c6acc59748863dc09b386a2604 in syncope's branch refs/heads/2_1_X from
Andrea Patricelli
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=5664ec9 ]

[SYNCOPE-1472] fixed multiple entries creation in relationship tables through list checks
and constraints on many yo many relationships


> 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: Bug
>          Components: core
>    Affects Versions: 2.0.13, 2.1.4
>            Reporter: Andrea Patricelli
>            Assignee: 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 the {{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 the table {{SyncopeUser_ExternalResource}}.
>  



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

Mime
View raw message