Here it is.
Thank you,
Christoph

On 02/01/2012 01:29 PM, Pierre-Arnaud Marcelot wrote:
> Thanks.
> 
> It's funny, but I really can't replicate the issue.
> 
> When I use these three ways to access the information, they all succeed and 
> print "true":
>> System.out.println( connection.exists( dnString ) );
>> System.out.println( connection.exists( dn ) );
>> System.out.println( connection.exists( dn.getName() ) );
> 
> 
> Could you also attach the LDIF of the 'dc=openengsb,dc=org' branch please?
> Maybe I'm missing something here...
> 
> Thanks,
> Pierre-Arnaud
> 
> 
> On 1 févr. 2012, at 13:22, Christoph Czurda wrote:
> 
>>
>>
>> On 02/01/2012 01:13 PM, Pierre-Arnaud Marcelot wrote:
>>> Christoph,
>>>
>>> I guess the 'cn=testAttribute' entry is an instance of the 
>>> 'openengsb-namedObject' Object Class, right?
>> Yes, that's correct.
>>>
>>> Regards,
>>> Pierre-Arnaud
>>>
>>>
>>> On 1 févr. 2012, at 12:26, Christoph Czurda wrote:
>>>
>>>> Hi Pierre-Arnaud,
>>>>
>>>> I attached the ldif file. Btw, I used the LdapNetworkConnection as
>>>> proposed in another thread. While it enabled my custom schema, it still
>>>> gives the same result for this particular unit test.
>>>>
>>>> If you have the time, feel free to comment on my schema. It is my first
>>>> schema and I appreciate any feedback.
>>>>
>>>> Kind regards,
>>>> Christoph
>>>>
>>>> On 02/01/2012 11:34 AM, Pierre-Arnaud Marcelot wrote:
>>>>> Thanks Christoph,
>>>>>
>>>>> I replicated the whole hierarchy of the DN you gave with standard schema 
>>>>> element and I have not been able to reproduce the issue.
>>>>>
>>>>> As you mentioned in another mail, you're using a custom schema for your 
>>>>> own set of Attribute Types and Object Classes.
>>>>> Would you be allowed to share it with us (even in a private email, not on 
>>>>> the ML), so we can replicate the issue and found out more about this 
>>>>> strange issue?
>>>>>
>>>>> Regards,
>>>>> Pierre-Arnaud
>>>>>
>>>>>
>>>>> On 1 févr. 2012, at 10:40, Christoph Czurda wrote:
>>>>>
>>>>>> On 02/01/2012 10:34 AM, Pierre-Arnaud Marcelot wrote:
>>>>>>> Hi Christoph,
>>>>>>>
>>>>>>> Could we have a look at the full DN you're using?
>>>>>> Sure, here it is:
>>>>>> cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
>>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>
>>>> <openengsbSchema.ldif>
>>>
> 
version: 1

dn: openengsb-id=1,cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=us
 erdata,dc=openengsb,dc=org
objectClass: openengsb-uniqueObject
objectClass: openengsb-javaClassInstance
objectClass: javaObject
objectClass: top
javaClassName: java.lang.Boolean
openengsb-id: 1
description: true

dn: ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: users

dn: ou=direct,ou=permissions,cn=testUser,ou=users,ou=userdata,dc=openengsb,d
 c=org
objectClass: openengsb-awareContainer
objectClass: organizationalUnit
objectClass: top
ou: direct
openengsb-maxId: 0

dn: ou=permissionSets,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: permissionSets

dn: cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=userdata,dc=opene
 ngsb,dc=org
objectClass: openengsb-namedObject
objectClass: top
cn: testAttribute

dn: ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: userdata

dn: ou=permissionSets,ou=permissions,cn=testUser,ou=users,ou=userdata,dc=ope
 nengsb,dc=org
objectClass: openengsb-awareContainer
objectClass: organizationalUnit
objectClass: top
ou: permissionSets
openengsb-maxId: 0

dn: ou=permissions,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: permissions

dn: cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: openengsb-namedObject
objectClass: top
cn: testUser

dn: dc=openengsb,dc=org
objectClass: domain
objectClass: top
dc: openengsb

dn: ou=credentials,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: credentials

dn: ou=attributes,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: attributes

dn: openengsb-id=2,cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=us
 erdata,dc=openengsb,dc=org
objectClass: openengsb-uniqueObject
objectClass: openengsb-javaClassInstance
objectClass: javaObject
objectClass: top
javaClassName: java.lang.String
openengsb-id: 2
description: abc

version: 1

dn: openengsb-id=1,cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=us
 erdata,dc=openengsb,dc=org
objectClass: openengsb-uniqueObject
objectClass: openengsb-javaClassInstance
objectClass: javaObject
objectClass: top
javaClassName: java.lang.Boolean
openengsb-id: 1
description: true
createTimestamp: 20120201123341Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123341.093000Z#000000#000#000000
entryParentId: 3170
entryUUID:: MTM5ODExMWYtMmQwOS00MmNlLWE2ZDUtNzdmYzY0MDM2NzVj

dn: ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: users
createTimestamp: 20120131213209Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120131213209.440000Z#000000#000#000000
entryParentId: 2
entryUUID:: MWRiNDBkMjgtMWQ4Yi00OGQ5LWFmY2YtYzgxMDg4YmViMGIz

dn: ou=direct,ou=permissions,cn=testUser,ou=users,ou=userdata,dc=openengsb,d
 c=org
objectClass: openengsb-awareContainer
objectClass: organizationalUnit
objectClass: top
ou: direct
openengsb-maxId: 0
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.983000Z#000000#000#000000
entryParentId: 3165
entryUUID:: MzVkZmViYWItOWZiYy00ODU5LWI4MTMtZDM1OTFhZGMyNWEy

dn: ou=permissionSets,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: permissionSets
createTimestamp: 20120131213245Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120131213245.559000Z#000000#000#000000
entryParentId: 2
entryUUID:: NDE1ZmViMTEtMzM5NS00M2JkLWFiZDktOGE5MDI2YWMxMDM5

dn: cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=userdata,dc=opene
 ngsb,dc=org
objectClass: openengsb-namedObject
objectClass: top
cn: testAttribute
createTimestamp: 20120201123341Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123341.085000Z#000000#000#000000
entryParentId: 3169
entryUUID:: NDU1MDVjN2ItNGU5MC00YzM3LTlmZjAtOTkwMTA2NGZmMjZi

dn: ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: userdata
createTimestamp: 20120131213121Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120131213121.858000Z#000000#000#000000
entryParentId: 1
entryUUID:: NGI1M2EzY2MtZjE3NS00YjRlLTgyZjYtNzU5ZmYxODUyNjMy

dn: ou=permissionSets,ou=permissions,cn=testUser,ou=users,ou=userdata,dc=ope
 nengsb,dc=org
objectClass: openengsb-awareContainer
objectClass: organizationalUnit
objectClass: top
ou: permissionSets
openengsb-maxId: 0
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.988000Z#000000#000#000000
entryParentId: 3165
entryUUID:: Njk2ZjBhOTUtZjg0Ny00NDMxLTljMGUtNmQ0ZTYxM2YxZjc2

dn: ou=permissions,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: permissions
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.964000Z#000000#000#000000
entryParentId: 3164
entryUUID:: OTc4NTVlODAtOWJhYi00YzRjLTk5N2UtYjQ5Mjc4OGFiZjU1

dn: cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: openengsb-namedObject
objectClass: top
cn: testUser
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.957000Z#000000#000#000000
entryParentId: 3
entryUUID:: YTk5Mzg4MzAtODYyNi00ODJmLWIyZjctYTgzMTIzNzZkM2Nm

dn: dc=openengsb,dc=org
objectClass: domain
objectClass: top
dc: openengsb
createTimestamp: 20120131205609Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120131205609.657000Z#000000#000#000000
entryParentId: 0
entryUUID:: YjlhNzI2ZWEtYWRkZC00YjliLTllYmItMTgzNDZiMDBjOWZi

dn: ou=credentials,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: credentials
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.994000Z#000000#000#000000
entryParentId: 3164
entryUUID:: YmRmNDQ4ZTMtNTk4NC00NGU4LTkyMjctNmFkYTdiZGYwYmNk

dn: ou=attributes,cn=testUser,ou=users,ou=userdata,dc=openengsb,dc=org
objectClass: organizationalUnit
objectClass: top
ou: attributes
createTimestamp: 20120201123340Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123340.999000Z#000000#000#000000
entryParentId: 3164
entryUUID:: YzNmNWE2NjktOTY0Ny00ZTg5LWFkNDAtODRmOGY1YjI5ZjFm

dn: openengsb-id=2,cn=testAttribute,ou=attributes,cn=testUser,ou=users,ou=us
 erdata,dc=openengsb,dc=org
objectClass: openengsb-uniqueObject
objectClass: openengsb-javaClassInstance
objectClass: javaObject
objectClass: top
javaClassName: java.lang.String
openengsb-id: 2
description: abc
createTimestamp: 20120201123341Z
creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system
entryCSN: 20120201123341.108000Z#000000#000#000000
entryParentId: 3170
entryUUID:: ZmE4MTU2ZjMtZjMzYS00OTk0LTk3N2MtZmJjOWUxMjRjYjcy

Reply via email to