syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/2] syncope git commit: User status update working with key or username (as commodity)
Date Thu, 06 Oct 2016 13:23:11 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X f101f4bd3 -> 594d5cc3a
  refs/heads/master e6eb802e7 -> 336fe415c


User status update working with key or username (as commodity)


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

Branch: refs/heads/2_0_X
Commit: 594d5cc3a2ea262b0158fb46d029cab52983a58e
Parents: f101f4b
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Thu Oct 6 15:22:42 2016 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Thu Oct 6 15:22:42 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/syncope/core/logic/UserLogic.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/594d5cc3/core/logic/src/main/java/org/apache/syncope/core/logic/UserLogic.java
----------------------------------------------------------------------
diff --git a/core/logic/src/main/java/org/apache/syncope/core/logic/UserLogic.java b/core/logic/src/main/java/org/apache/syncope/core/logic/UserLogic.java
index 895b958..3273759 100644
--- a/core/logic/src/main/java/org/apache/syncope/core/logic/UserLogic.java
+++ b/core/logic/src/main/java/org/apache/syncope/core/logic/UserLogic.java
@@ -267,6 +267,9 @@ public class UserLogic extends AbstractAnyLogic<UserTO, UserPatch>
{
                 toUpdate.getRealm());
         securityChecks(effectiveRealms, toUpdate.getRealm(), toUpdate.getKey());
 
+        // ensures the actual user key is effectively on the patch - as the binder.getUserTO(statusPatch.getKey())
+        // call above works with username as well
+        statusPatch.setKey(toUpdate.getKey());
         Pair<String, List<PropagationStatus>> updated = setStatusOnWfAdapter(statusPatch,
nullPriorityAsync);
 
         return after(


Mime
View raw message