Ghenadii Batalski created DIRAPI-341:
----------------------------------------

             Summary: DefaultSchemaManager ignores strict/relaxed setting from 
SchemaLoader
                 Key: DIRAPI-341
                 URL: https://issues.apache.org/jira/browse/DIRAPI-341
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.0.0.AM2
            Reporter: Ghenadii Batalski


The constructor of *DefaultSchemaManager* doesn't honor the relaxed/strict 
setting of underlying *SchemaLoader* so the current implementation of 
*LdapNetworkConnection* cannot load schema relaxed (eg. with custom OIDs in my 
case) and ends in
{code:java}
org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException:
 ERR_16012_INVALID_COMPARATOR_OID Comparator OID 21.16.840.1.1137xxxxx is not a 
valid OID .{code}
The problem is, the *loadSchemaRelaxed()* creates the relaxed *SchemaLoader* 
but its relaxed setting is ignored by *DefaultSchemaManager*: Constructor 
*DefaultSchemaManager( SchemaLoader schemaLoader )* sets the *isRelaxed* to 
false (STRICT).

I could provide a PR for it, but i don't see any possibility to collaborate on 
the github repo. What is the best (i.e. simplest) way to send you a patch?

Regards, Gena



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to