You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/08/24 07:36:35 UTC

[1/2] syncope git commit: Properly look by username

Repository: syncope
Updated Branches:
  refs/heads/2_0_X c99d89705 -> 61862e34c
  refs/heads/master aa50e8ae5 -> e8f2c12bc


Properly look by username


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

Branch: refs/heads/2_0_X
Commit: 61862e34c9559c8f69f31b823a83753350d4aa21
Parents: c99d897
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Aug 24 09:35:47 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Aug 24 09:35:47 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/61862e34/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
----------------------------------------------------------------------
diff --git a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
index 0798939..1d43bbe 100644
--- a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
+++ b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
@@ -268,7 +268,7 @@ public class SAML2UserManager {
 
     @Transactional(propagation = Propagation.REQUIRES_NEW)
     public String update(final String username, final SAML2IdPEntity idp, final SAML2LoginResponseTO responseTO) {
-        UserTO userTO = binder.getUserTO(username);
+        UserTO userTO = binder.getUserTO(userDAO.findKey(username));
         UserTO original = SerializationUtils.clone(userTO);
 
         fill(idp, responseTO, userTO);


[2/2] syncope git commit: Properly look by username

Posted by il...@apache.org.
Properly look by username


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

Branch: refs/heads/master
Commit: e8f2c12bc2d1a3253bf9437e0f8eac5c8c9e853d
Parents: aa50e8a
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Aug 24 09:35:47 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Aug 24 09:36:20 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/e8f2c12b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
----------------------------------------------------------------------
diff --git a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
index e0001b1..8792a26 100644
--- a/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
+++ b/ext/saml2sp/logic/src/main/java/org/apache/syncope/core/logic/saml2/SAML2UserManager.java
@@ -255,7 +255,7 @@ public class SAML2UserManager {
 
     @Transactional(propagation = Propagation.REQUIRES_NEW)
     public String update(final String username, final SAML2IdPEntity idp, final SAML2LoginResponseTO responseTO) {
-        UserTO userTO = binder.getUserTO(username);
+        UserTO userTO = binder.getUserTO(userDAO.findKey(username));
         UserTO original = SerializationUtils.clone(userTO);
 
         fill(idp, responseTO, userTO);