You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, @aplatt. The only commit I can see between those two releases that may be related is c0def85.
I have not been able to reproduce this yet, though I imagine it has something to do with the above arrangement is propagating exceptions. Does the UndeclaredThrowableException have a caused by or anything else that indicates what its cause is? Or, are you able to produce a GitHub sample that demonstrates the error?
Yes, the cause is actually the exception that was thrown prior to spring-ldap-core 2.3.2.RELEASE. It appears that all the LDAP exceptions thrown prior to spring-ldap-core 2.3.2.RELEASE have been translated to java.lang.reflect.UndeclaredThrowableException exceptions with the cause being the original exception. Only when using StartTLS (see original code snippet above).
Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3286)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3207)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2998)
at com.sun.jndi.ldap.LdapCtx.c_rename(LdapCtx.java:755)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_rename(ComponentContext.java:709)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(PartialCompositeContext.java:269)
at javax.naming.InitialContext.rename(InitialContext.java:455)
I am using the following version of Java:
When I make the following lookup using StartTLS with spring-ldap-core 2.3.1.RELEASE for a non existent dn:
I receive the following exception as expected:
org.springframework.ldap.NameNotFoundException
However, from spring-ldap-core 2.3.2.RELEASE and above, I received the following exception:
java.lang.reflect.UndeclaredThrowableException
This only happens when I attempt to use StartTLS ie. call setAuthenticationStrategy().
The text was updated successfully, but these errors were encountered: