directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Ayyagari (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRAPI-21) Adding a value into an EntryAttribute does not leverage the schemaManager
Date Mon, 23 Aug 2010 10:57:17 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901348#action_12901348
] 

Kiran Ayyagari commented on DIRAPI-21:
--------------------------------------

IMO it is better to let the user make use of schema manager rather than changing api to make
the entries/attributes schema aware.
cause..

1. Users can directly get access to schema manager from LdapConnection
2. It is always slow to convert a given entry to a schema aware entry (this requires creating
a new entry by copying all attributes)
3. Entry interface doesn't provide any method to check if the entry already is schema aware
so there is no way to avoid step 2 even if the
    user creates a schema aware entry

The only place where LdapConnection uses schema manager internally is while returning search
results.


> Adding a value into an EntryAttribute does not leverage the schemaManager
> -------------------------------------------------------------------------
>
>                 Key: DIRAPI-21
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-21
>             Project: Directory client API
>          Issue Type: Bug
>    Affects Versions: 0.1.0
>            Reporter: Emmanuel Lecharny
>            Priority: Blocker
>             Fix For: 0.2.0
>
>
> We don't normalize nor check that the added value is valid in the EntryAttribute. As
soon as we have a reference to the SchemaManager, every added value should be checkd and normalized.
> The contains( XXX ) method does not leverage the schemaManager either.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message