[
https://issues.apache.org/jira/browse/DIRAPI-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314415#comment-17314415
]
Emmanuel Lécharny commented on DIRAPI-368:
------------------------------------------
Make sense after having read DIRSERVER-2340: the stack is too small for
thousands of values to be handled recursively.
The used algorithm is assuming an infinite stack, which is plain wrong.
> StackOverflowError when working with entries with thousands of attributes or
> values
> -----------------------------------------------------------------------------------
>
> Key: DIRAPI-368
> URL: https://issues.apache.org/jira/browse/DIRAPI-368
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 2.0.1
> Reporter: Stefan Seelmann
> Assignee: Stefan Seelmann
> Priority: Major
> Fix For: 2.0.2
>
>
> Reported originally in https://issues.apache.org/jira/browse/DIRSERVER-2340
> {noformat}
> java.lang.StackOverflowError
> at
> org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:66)
> at
> org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68)
> at
> org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68)
> at
> org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68)
> {noformat}
> Reason is that the encoding is done recursively.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]