directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] [Commented] (DIRSERVER-1934) LdapCoreSessionConnection does not include controls in response
Date Fri, 13 Dec 2013 15:24:07 GMT


Emmanuel Lecharny commented on DIRSERVER-1934:

>From the top of my head, it's just a matter of defining the list of control you can add
to a reponse. This is done by the LdapNetworkConnection class, but it has to be done for the
LdapCoreConnection too.

Let me check that...

> LdapCoreSessionConnection does not include controls in response
> ---------------------------------------------------------------
>                 Key: DIRSERVER-1934
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0-M16
>            Reporter: lucas theisen
> This may not be a big issue as LdapCoreSessionConnection appears to only be useful for
embedded ldap instances, but it does make for painful unit testing.  Many of my unit tests
were failing due to missing controls in the response, and as soon as I switched to LdapNetworkConnection
it all went away.  As a workaround, this will likely work though if your unit tests require
LdapNetworkConnection, that means they could fail due to port collisions...  
> I could slap together a quick unit test if it would be helpful.
> As a workaround, use LdapNetworkConnection for now.

This message was sent by Atlassian JIRA

View raw message