directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny (Jira) <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2302) Doing a search with a filter containing (objectClass=top) fails
Date Thu, 19 Mar 2020 18:29:00 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062845#comment-17062845
] 

Emmanuel Lécharny commented on DIRSERVER-2302:
----------------------------------------------

This is a consequence of an optimization introduced  a long time ago... (actually, 7 years
: [https://svn.apache.org/repos/asf/directory/apacheds/trunk@1371864)]

 
{code:java}
            for ( Value value : objectClass )
            {
                if ( value.equals( topOCValue ) )
                {
                    continue;
                }
                
                String normalizedOc = objectClassNormalizer.normalize( value.getString() );

                objectClassIdx.add( partitionTxn, normalizedOc, id );
            }
{code}

> Doing a search with a filter containing (objectClass=top) fails
> ---------------------------------------------------------------
>
>                 Key: DIRSERVER-2302
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2302
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 2.0.0.AM26
>            Reporter: Emmanuel Lécharny
>            Priority: Blocker
>
> When doing a search with a filter like {{"(&(objectClass=top)(cn=blah))"}}, the search
fails to return anything because the first filter element selects 0 candidate, because 'top'
is not anymore indexed (there is no reason to index 'top', as every single entry has such
a value).
> The problem is that the search engine does not take care of this special use case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Mime
View raw message