Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1472

Resource association is duplicated on database after update, assign or link operations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.13, 2.1.4
    • Fix Version/s: 2.0.14, 2.1.5, 3.0.0
    • Component/s: core
    • Labels:
      None

      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.

       

        Attachments

          Activity

            People

            • Assignee:
              andrea.patricelli Andrea Patricelli
              Reporter:
              andrea.patricelli Andrea Patricelli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: