[
https://issues.apache.org/jira/browse/DIRAPI-341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRAPI-341.
--------------------------------------
Resolution: Fixed
Patch applied with commit cb569e72be731647413c0ef1e147028b670fb95e
> 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
> Priority: Major
>
> 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)