directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <>
Subject [jira] Closed: (DIRSERVER-1083) Search on an custom attribute added to the dynamic schema fails when no result is found
Date Mon, 31 Mar 2008 20:32:25 GMT


Alex Karasulu closed DIRSERVER-1083.

    Resolution: Invalid

I added a test case here to demonstrate what's going on:

LDAP search requires matchingRule to figure out how to conduct candidate matching for various
assertions.  Without a matchingRule on the attributes used in filter assertions, the server
cannot effectively search for your entry based on your search criteria.  The server uses comparators
and normalizers that are associated matchingRules to normalize and compare values.

Right now the server is defaulting to no op normalizers and comparators when it cannot find
a matchingRule for this attribute you want to search.  The no-op defaults presumes some binary
data.  However you're using a human readable syntax.  So what's happening is the server is
treating your attribute value as binary in some places and bombing out when expecting a string
in others.

Right now it's pretty sad that the server let you search on this attribute at all without
matchingRules.  I don't know if attributeType definitions without MRs are allowed in LDAP.
 I thought they are but if they don't have a matchingRule they cannot be used in the DN or
in filter expressions.  I may be wrong.  

Please confirm with the RFCs for the exact behavior under these circumstances and I'll make
sure we comply. Thanks!

> Search on an custom attribute added to the dynamic schema fails when no result is found
> ---------------------------------------------------------------------------------------
>                 Key: DIRSERVER-1083
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: bigbang
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Alex Karasulu
>            Priority: Critical
>             Fix For: 1.5.2
>         Attachments: active-directory.ldif
> When searching on a custom attribute added to the dynamic schema, I received an error
in Directory Studio:
> Error while performing search
>   [LDAP: error code 80 - failed on search operation: Unexpected exception.]
> This error only occurs when no result is found. If one or more results are found, they
are correctly displayed.

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

View raw message