syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject syncope git commit: [SYNCOPE-1389] provides the fix
Date Wed, 24 Oct 2018 14:41:41 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 5e854e117 -> f6d4d5d00


[SYNCOPE-1389] provides the fix


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

Branch: refs/heads/2_0_X
Commit: f6d4d5d00f758ad49eb45771856d59a8cf211c1c
Parents: 5e854e1
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Wed Oct 24 16:41:24 2018 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Wed Oct 24 16:41:24 2018 +0200

----------------------------------------------------------------------
 .../provisioning/java/propagation/PropagationManagerImpl.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/f6d4d5d0/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/PropagationManagerImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/PropagationManagerImpl.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/PropagationManagerImpl.java
index 0fee2cc..1e5ab43 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/PropagationManagerImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/PropagationManagerImpl.java
@@ -357,7 +357,9 @@ public class PropagationManagerImpl implements PropagationManager {
                 }
                 values.add(AttributeBuilder.build(schema.getExtAttrName(), vAttr.getValues()));
 
-                propByRes.add(ResourceOperation.UPDATE, schema.getProvision().getResource().getKey());
+                if (!propByRes.contains(ResourceOperation.CREATE, schema.getProvision().getResource().getKey()))
{
+                    propByRes.add(ResourceOperation.UPDATE, schema.getProvision().getResource().getKey());
+                }
             } else {
                 LOG.warn("{} not owned by or {} not allowed for {}",
                         schema.getProvision().getResource(), schema, any);


Mime
View raw message