syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/2] syncope git commit: User status update working with key or username (as commodity)
Date Thu, 06 Oct 2016 13:23:12 GMT
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/336fe415
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/336fe415
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/336fe415

Branch: refs/heads/master
Commit: 336fe415c1e78f42da77bb6eb1cf3b362c6d8cae
Parents: e6eb802
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:58 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/336fe415/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