[ 
https://issues.apache.org/jira/browse/OAK-9497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382758#comment-17382758
 ] 

Konrad Windszus edited comment on OAK-9497 at 7/18/21, 2:53 PM:
----------------------------------------------------------------

I think this is a similar issue as described in DIRSERVER-2071. The LDAP 
request is split up in multiple packets and Apache DS does not properly deal 
with it. Unfortunately updating Apache DS to 25 or 26 does not work because 
then I hit DIRSERVER-2247.

Update: Even with AM27-SNAPSHOT it does not work yet, I therefore reported 
DIRSERVER-2351.
A workaround would be to reduce the amount of user DNs to set in the group to 
prevent fragmentation of TCP requests in Mac OS. For me the segment size is 
16332 bytes, so settings the group membership requires 5 TCP segments (with the 
2222 users).


was (Author: kwin):
I think this is a similar issue as described in DIRSERVER-2071. The LDAP 
request is split up in multiple packets and Apache DS does not properly deal 
with it. Unfortunately updating Apache DS to 25 or 26 does not work because 
then I hit DIRSERVER-2247.

Update: Even with AM27-SNAPSHOT it does not work yet, I therefore reported 
DIRSERVER-2351.
A workaround would be to reduce the amount of user DNs to set in the group to 
prevent fragmentation of TCP requests in Mac OS. 

> LargeLdapProviderTest: InvocationTargetException: LDAP connection has been 
> closed
> ---------------------------------------------------------------------------------
>
>                 Key: OAK-9497
>                 URL: https://issues.apache.org/jira/browse/OAK-9497
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: auth-ldap
>    Affects Versions: 1.22.8
>            Reporter: Konrad Windszus
>            Priority: Major
>
> With Mac OS 11.4 I run into the following exception when executing the test 
> phase in Maven
> {code}
> [ERROR] 
> org.apache.jackrabbit.oak.security.authentication.ldap.LargeLdapProviderTest  
> Time elapsed: 1.939 s  <<< ERROR!
> java.lang.reflect.InvocationTargetException
> Caused by: javax.naming.NamingException: LDAP connection has been closed
> {code}
> I can reproduce reliably on my computer
> This happens with
> {code}
> Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
> Maven home: /usr/local/Cellar/maven/3.8.1/libexec
> Java version: 11.0.11, vendor: AdoptOpenJDK, runtime: 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
> Default locale: en_DE, platform encoding: UTF-8
> OS name: "mac os x", version: "11.4", arch: "x86_64", family: "mac"
> {code}
> I tried with JDK 8 (1.8.0_292) as well with the same exception.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to