You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/07/04 17:15:48 UTC

[jira] [Commented] (SYNCOPE-399) Role attribute mapping for user mapping item doesn't result in a multivalue property

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

Hudson commented on SYNCOPE-399:
--------------------------------

Integrated in Syncope-trunk #244 (See [https://builds.apache.org/job/Syncope-trunk/244/])
    merged from branch 1_1_X for SYNCOPE-399 (Revision 1499764)

     Result = SUCCESS
fmartelli : 
Files : 
* /syncope/trunk
* /syncope/trunk/core/src/main/java/org/apache/syncope/core/util/MappingUtil.java

                
> Role attribute mapping for user mapping item doesn't result in a multivalue property
> ------------------------------------------------------------------------------------
>
>                 Key: SYNCOPE-399
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-399
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1.2, 1.2.0
>            Reporter: fabio martelli
>            Assignee: fabio martelli
>             Fix For: 1.1.3, 1.2.0
>
>
> Role attribute mapping for user mapping item doesn't result in a multivalue property.
> Take a look at MappingUtil.prepareAttribute() method: at the end of this method the cardinality of the attribute to be propagated has been retrieved by the following code
>            if (schema != null && schema.isMultivalue()) {
>                 result = new AbstractMap.SimpleEntry<String, Attribute>(null, AttributeBuilder.build(extAttrName,
>                         objValues));
>             } else {
>                 result = new AbstractMap.SimpleEntry<String, Attribute>(null, objValues.isEmpty()
>                         ? AttributeBuilder.build(extAttrName)
>                         : AttributeBuilder.build(extAttrName, objValues.iterator().next()));
>             }
> In case of user mapping item related to a merbership or role attribute (non multivalued) a single value will be propagated.

--
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