This is an automated email from the ASF dual-hosted git repository.
mdisabatino pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new 98064a5 [SYNCOPE-1504]
98064a5 is described below
commit 98064a5d9fbcbf49f8ca269483a8fde5acc9492d
Author: Marco Di Sabatino Di Diodoro <[email protected]>
AuthorDate: Tue Oct 15 14:28:43 2019 +0200
[SYNCOPE-1504]
---
.../syncope/core/provisioning/java/pushpull/PullJobDelegate.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/PullJobDelegate.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/PullJobDelegate.java
index f69b4c9..5f0b248 100644
---
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/PullJobDelegate.java
+++
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/PullJobDelegate.java
@@ -356,7 +356,8 @@ public class PullJobDelegate extends
AbstractProvisioningJobDelegate<PullTask> i
AnyUtils anyUtils =
anyUtilsFactory.getInstance(provision.getAnyType().getKind());
profile.getResults().stream().
filter(result -> result.getUidValue() != null
- && result.getOperation() ==
ResourceOperation.CREATE).
+ && result.getOperation() ==
ResourceOperation.CREATE
+ &&
result.getAnyType().equals(provision.getAnyType().getKey())).
forEach(result -> {
anyUtils.addAttr(result.getKey(),
provision.getUidOnCreate(), result.getUidValue());
});