This is an automated email from the ASF dual-hosted git repository.

ilgrosso 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 05b8d64a77 [SYNCOPE-1755] Reworking the provided fix
05b8d64a77 is described below

commit 05b8d64a77de3c21e69eb213f39e121926bce3df
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Fri May 5 15:26:51 2023 +0200

    [SYNCOPE-1755] Reworking the provided fix
---
 .../core/provisioning/java/pushpull/AbstractPullResultHandler.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullResultHandler.java
 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullResultHandler.java
index 0555329892..07787a233c 100644
--- 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullResultHandler.java
+++ 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullResultHandler.java
@@ -836,7 +836,10 @@ public abstract class AbstractPullResultHandler extends 
AbstractSyncopeResultHan
 
             case DELETE:
                 // Skip DELETE in case of PullCorrelationRule.NO_MATCH
-                if (matches.get(0).getAny() != null) {
+                if (matches.get(0).getAny() == null) {
+                    end(provision.getAnyType().getKind(),
+                            MatchingRule.toEventName(MatchingRule.IGNORE), 
Result.SUCCESS, null, null, delta);
+                } else {
                     profile.getResults().addAll(delete(delta, matches, 
provision));
                 }
                 break;

Reply via email to