[
https://issues.apache.org/jira/browse/DIRSERVER-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964335#action_12964335
]
Stefan Seelmann commented on DIRSERVER-1585:
--------------------------------------------
I think the ControlEnum event doesn't make sense for controls without value
because the criticality is also changeable.
I'd propose to replace the ControlEnum with a ControlFactory instead, which
always creates a new instance of the control.
> Requests with value controls are not thread safe
> ------------------------------------------------
>
> Key: DIRSERVER-1585
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1585
> Project: Directory ApacheDS
> Issue Type: Bug
> Reporter: Stefan Seelmann
>
> In LdapMessageGrammar the ControlEnum is used to get an Control instance for
> an OID. The ControlEnum always returns the same Control instance. This works
> well for controls w/o value. But for controls with an value this is fatal
> because the single instance is used for each request and values may be
> overwritten from a parallel request.
> Background: I tried to run the PagedSearchIT using multiple threads, but they
> always failed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.