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

Francesco Chicchiriccò updated SYNCOPE-272:
-------------------------------------------

    Description: 
During execution of synchronization tasks, all user attributes are considered 
for update, with values coming from the syncing resource and from evaluated 
JEXL properties in the user template. 

If an attribute is not present in the schema mapping of the syncing resource 
but is present in the user template with null value, the value is cleared and 
the attribute removed.

This is not correct: if an attribute of the user template has no value, it must 
not be considered.

A test for proving this issue is attached.

  was:
During synchronization task, Apache Syncope updates all attributes from an 
user, specially the attributes that come from the synched resource and the 
calculed attributes(JEXL) of the user template. 

If an attribute is not present in the schema mapping of the synched resource, 
but is present in the user template with null value, Apache Syncope clear the 
attribute value.

If an attribute of the user template is not valued, it must not be considered.

I attach a test for solve this issue.

    
> During sync null attributes from template are considered
> --------------------------------------------------------
>
>                 Key: SYNCOPE-272
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-272
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0.5
>            Reporter: Marco Di Sabatino Di Diodoro
>            Assignee: Marco Di Sabatino Di Diodoro
>             Fix For: 1.0.5, 1.1.0
>
>         Attachments: testissueSYNCOPE272.patch
>
>
> During execution of synchronization tasks, all user attributes are considered 
> for update, with values coming from the syncing resource and from evaluated 
> JEXL properties in the user template. 
> If an attribute is not present in the schema mapping of the syncing resource 
> but is present in the user template with null value, the value is cleared and 
> the attribute removed.
> This is not correct: if an attribute of the user template has no value, it 
> must not be considered.
> A test for proving this issue is attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to