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:46:36 GMT
Repository: syncope
Updated Branches:
  refs/heads/master fed7c97c8 -> 6d285b201


[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/6d285b20
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6d285b20
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6d285b20

Branch: refs/heads/master
Commit: 6d285b20104369f1afcb85f162386b1eae827038
Parents: fed7c97
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Wed Oct 24 16:46:22 2018 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Wed Oct 24 16:46:22 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/6d285b20/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 deac6a4..cd851d5 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
@@ -352,7 +352,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