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 2022/03/10 16:05:00 UTC

[jira] [Reopened] (SYNCOPE-1656) Remediations are not created on update while pulling

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

Andrea Patricelli reopened SYNCOPE-1656:
----------------------------------------

# Link an user to a specific resource.
 # Change data of the user, on the resource, in order to have an error while pulling in update (e.g. to clash with some unique value or username of another user).   
 # Finally pull the same user through the reconciliation API (or in console from explore resource). You'll get a persistence error like this:


{code:java}
Unknown: ArgumentException: Encountered new object in persistent field "org.apache.syncope.core.persistence.jpa.entity.JPARemediation.pullTask" during attach.  However, this field does not allow cascade attach. Set the cascade attribute for this field to CascadeType.MERGE or CascadeType.ALL (JPA annotations) or "merge" or "all" (JPA orm.xml). You cannot attach a reference to a new object without cascading.{code}

> Remediations are not created on update while pulling
> ----------------------------------------------------
>
>                 Key: SYNCOPE-1656
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1656
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.1.10
>            Reporter: Andrea Patricelli
>            Assignee: Andrea Patricelli
>            Priority: Major
>             Fix For: 2.1.11, 3.0.0
>
>
> # Create an user on Syncope and setup some constraint or validation on an attribute. For example define an unique attribute, then set a value for it in the user. 
>  # Create an entity on an external resource that matches with the user created at step 1. Syncope is going to perform an update.
>  # Create a pull task on that resource with remediation flagged.
>  # Run the pull task and you'll see a failure on that user pull, but no remediations are created. The same behavior while creating an user creates remediation, instead.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)