Hi Christoph,

Could we have a look at the full DN you're using?

Thanks,
Pierre-Arnaud

On 1 févr. 2012, at 06:16, Christoph Czurda wrote:

> Hello!
> 
> I came accross a strange issue in a unit test. (server ApacheDS 2.0)
> 
> Testing connection.exists(Dn dn) returns false.
> When I test the String overload with the same dn I get true.
> 
> The code can probably explain better than words:
> 
> Dn dn;
> //dn is initialized with an existing Dn.
> 
> //this test passes:
> assertThat(connection.exists(dn.getName()), is(true));
> 
> //this fails. AssertionError: expected true, got false
> assertThat(connection.exists(dn), is(true));
> 
> How can that be? exists(Dn) works fine in other tests.
> 
> Maybe I should mention that I get lots of these messages:
> 
> 2012-02-01 05:56:00,730 [NioProcessor-2] WARN
> org.apache.directory.shared.asn1.ber.Asn1Decoder -
> ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU has been fully decoded
> but there are still bytes in the buffer.
> 
> But they occur with almost every message sent to the server. Btw, can I
> get rid of them somehow?
> 
> Kind regards,
> Christoph

Reply via email to