directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Closed: (DIRSERVER-906) Using the textual "entryACI" inside the server is dangerous and will lead to errors
Date Wed, 02 May 2007 15:00:15 GMT


Emmanuel Lecharny closed DIRSERVER-906.

Fixed in

> Using the textual "entryACI" inside the server is dangerous and will lead to errors
> -----------------------------------------------------------------------------------
>                 Key: DIRSERVER-906
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0.1, 1.5.0
>            Reporter: Emmanuel Lecharny
>         Assigned To: Emmanuel Lecharny
>             Fix For: 1.5.1
> There are places in the server where we do some existance check against attributes such
as "entryACI", "prescriptiveACI".
> This is not good enough. If a client send en antry using "" instead of "entryACI",
the test will fail.
> There are two way to fix it, it it will be costly :
> 1) during the normalization phase, *always* transform the attributeTypes to their OID
counterpart so that comparizon is done with the OID
> 2) when looking for an attributeType, search for the OID in an Attributes, and nothing
> Alternative would be to use the AttributeUtils.getAttribute(  Attributes, AttributeType
) method which return the attribute which type equals the one given as a parameter. There
are 2 problems with this approach :
> 1) this method is buggy : if there is only one alias, then it is used, so you won't be
able to find an Attribute using its OID ;)
> 2) it is slow, as you may have to find the AttributeType associated with an OID or a
String first, and then you may loop through all the aliases.

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

View raw message