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

Stefan Seelmann commented on DIRAPI-368:
----------------------------------------

We can decide to remove the reverse ordering later for a 3.0 version. But for a 
2.0.2 bugfix release we need to avoid backward incompatible changes. And the 
cost for reversing is really negligible, for 1M values it takes 40ms but the 
whole encoding/decoding takes 14 seconds.

> 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: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to