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
>>>
> 
# Generated by Apache Directory Studio on January 31, 2012 10:18:18 PM

# SCHEMA "OPENENGSB"
dn: cn=openengsb, ou=schema
objectclass: metaSchema
objectclass: top
cn: openengsb
m-dependencies: system
m-dependencies: core
m-dependencies: java

dn: ou=attributeTypes, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: attributetypes

dn: m-oid=1.3.6.1.4.1.78048.0.4.0.1, ou=attributeTypes, cn=openengsb, ou=schema
objectclass: metaAttributeType
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.4.0.1
m-name: openengsb-id
m-description: An id represented as an integer.
m-equality: integerMatch
m-ordering: integerOrderingMatch
m-substr: integerMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.27
m-singleValue: TRUE

dn: m-oid=1.3.6.1.4.1.78048.0.4.0.2, ou=attributeTypes, cn=openengsb, ou=schema
objectclass: metaAttributeType
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.4.0.2
m-name: openengsb-maxId
m-description: Intended usage: This value is higher than or equal to the highest
  id inside the container.
m-equality: integerMatch
m-ordering: integerOrderingMatch
m-substr: integerMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.27
m-singleValue: TRUE

dn: ou=comparators, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: comparators

dn: ou=ditContentRules, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: ditcontentrules

dn: ou=ditStructureRules, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: ditstructurerules

dn: ou=matchingRules, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: matchingrules

dn: ou=matchingRuleUse, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: matchingruleuse

dn: ou=nameForms, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: nameforms

dn: ou=normalizers, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: normalizers

dn: ou=objectClasses, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: objectClasses

dn: m-oid=1.3.6.1.4.1.78048.0.6.0.3, ou=objectClasses, cn=openengsb, ou=schema
objectclass: metaObjectClass
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.6.0.3
m-name: openengsb-javaClassInstance
m-description: Instance of a java class.
m-supObjectClass: javaObject

dn: m-oid=1.3.6.1.4.1.78048.0.6.0.1, ou=objectClasses, cn=openengsb, ou=schema
objectclass: metaObjectClass
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.6.0.1
m-name: openengsb-awareContainer
m-description: A container which maintains the highest id inside of it.
m-typeObjectClass: AUXILIARY
m-may: openengsb-maxId

dn: m-oid=1.3.6.1.4.1.78048.0.6.0.2, ou=objectClasses, cn=openengsb, ou=schema
objectclass: metaObjectClass
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.6.0.2
m-name: openengsb-uniqueObject
m-description: An object with a unique id.
m-typeObjectClass: AUXILIARY
m-must: openengsb-id

dn: m-oid=1.3.6.1.4.1.78048.0.6.0.4, ou=objectClasses, cn=openengsb, ou=schema
objectclass: metaObjectClass
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.6.0.4
m-name: openengsb-namedObject
m-description: An object with a name.
m-must: cn

dn: m-oid=1.3.6.1.4.1.78048.0.6.0.5, ou=objectClasses, cn=openengsb, ou=schema
objectclass: metaObjectClass
objectclass: metaTop
objectclass: top
m-oid: 1.3.6.1.4.1.78048.0.6.0.5
m-name: openengsb-descriptiveObject
m-description: An object with a descriptive String.
m-typeObjectClass: AUXILIARY
m-may: description

dn: ou=syntaxCheckers, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: syntaxcheckers

dn: ou=syntaxes, cn=openengsb, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: syntaxes

Reply via email to