Repository: syncope
Updated Branches:
  refs/heads/master 44a5e1da7 -> 21a35a9b5


[SYNCOPE-1302] Fix to handle multiple attribute values


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/21a35a9b
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/21a35a9b
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/21a35a9b

Branch: refs/heads/master
Commit: 21a35a9b5aba2ae012eff405d8b795e74e5653ea
Parents: 44a5e1d
Author: skylark17 <matteo.alessandr...@tirasa.net>
Authored: Fri Apr 13 13:38:15 2018 +0200
Committer: skylark17 <matteo.alessandr...@tirasa.net>
Committed: Fri Apr 13 13:38:50 2018 +0200

----------------------------------------------------------------------
 .../syncope/core/provisioning/java/MappingManagerImpl.java       | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/21a35a9b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java
----------------------------------------------------------------------
diff --git 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java
 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java
index 23af3cc..5186a70 100644
--- 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java
+++ 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java
@@ -396,12 +396,10 @@ public class MappingManagerImpl implements MappingManager 
{
                 } else {
                     result = Pair.of(null, 
AttributeBuilder.buildPassword(passwordAttrValue.toCharArray()));
                 }
-            } else if (schema != null && schema.isMultivalue()) {
-                result = Pair.of(null, 
AttributeBuilder.build(mapItem.getExtAttrName(), objValues));
             } else {
                 result = Pair.of(null, objValues.isEmpty()
                         ? AttributeBuilder.build(mapItem.getExtAttrName())
-                        : AttributeBuilder.build(mapItem.getExtAttrName(), 
objValues.iterator().next()));
+                        : AttributeBuilder.build(mapItem.getExtAttrName(), 
objValues));
             }
         }
 

Reply via email to