X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.ldap%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fldap%2Fjcr%2FJcrUserDetailsContextMapper.java;fp=security%2Fruntime%2Forg.argeo.security.ldap%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fldap%2Fjcr%2FJcrUserDetailsContextMapper.java;h=5c6a88585ab4c4403fd251eff6edd72b3fa15cbe;hb=2b8f41b43cc598398a4bb66dd46d7d87ac000134;hp=ec4255af9a6a1777583f058fda55cae186e2e902;hpb=259ff4470799cb523f22af2be4a1e92b19f1d734;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.ldap/src/main/java/org/argeo/security/ldap/jcr/JcrUserDetailsContextMapper.java b/security/runtime/org.argeo.security.ldap/src/main/java/org/argeo/security/ldap/jcr/JcrUserDetailsContextMapper.java index ec4255af9..5c6a88585 100644 --- a/security/runtime/org.argeo.security.ldap/src/main/java/org/argeo/security/ldap/jcr/JcrUserDetailsContextMapper.java +++ b/security/runtime/org.argeo.security.ldap/src/main/java/org/argeo/security/ldap/jcr/JcrUserDetailsContextMapper.java @@ -13,7 +13,6 @@ import javax.jcr.Node; import javax.jcr.Property; import javax.jcr.RepositoryException; import javax.jcr.Session; -import javax.jcr.nodetype.NodeType; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -115,14 +114,15 @@ public class JcrUserDetailsContextMapper implements UserDetailsContextMapper, userHome = JcrUtils.createUserHome(session, homeBasePath, username); String userHomePath = userHome.getPath(); - Node userProfile = userHome.getNode(ARGEO_PROFILE); + Node userProfile; // = userHome.getNode(ARGEO_PROFILE); if (userHome.hasNode(ARGEO_PROFILE)) { userProfile = userHome.getNode(ARGEO_PROFILE); } else { - userProfile = userHome.addNode(ARGEO_PROFILE); - userProfile.addMixin(NodeType.MIX_TITLE); - userProfile.addMixin(NodeType.MIX_CREATED); - userProfile.addMixin(NodeType.MIX_LAST_MODIFIED); + throw new ArgeoException("We should never reach this point"); + // userProfile = userHome.addNode(ARGEO_PROFILE); + // userProfile.addMixin(NodeType.MIX_TITLE); + // userProfile.addMixin(NodeType.MIX_CREATED); + // userProfile.addMixin(NodeType.MIX_LAST_MODIFIED); } for (String jcrProperty : propertyToAttributes.keySet())