[
https://issues.apache.org/jira/browse/SYNCOPE-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Chicchiriccò updated SYNCOPE-1472:
--------------------------------------------
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|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}}.
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}
creates 5 entries in table `syncopeuser_externalresource`.
> 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
> 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)