directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1585) Requests with value controls are not thread safe
Date Sat, 27 Nov 2010 09:51:14 GMT

    [ 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.


Mime
View raw message