You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2009/02/22 02:22:02 UTC

[jira] Assigned: (DIRSHARED-24) Filter comparison with and node does not work

     [ https://issues.apache.org/jira/browse/DIRSHARED-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny reassigned DIRSHARED-24:
------------------------------------------

    Assignee: Emmanuel Lecharny

> Filter comparison with and node does not work
> ---------------------------------------------
>
>                 Key: DIRSHARED-24
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-24
>             Project: Directory Shared
>          Issue Type: Bug
>    Affects Versions: 0.9.11, 0.9.12, 0.9.13
>            Reporter: Steve hammond
>            Assignee: Emmanuel Lecharny
>            Priority: Critical
>         Attachments: andPatch.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> at the bottom of andNode.java the equals function is comparing children(i) to children(i) and not children(i) to otherChildren(i)
>         for ( int i = 0; i < children.size(); i++ )
>         {
>             ExprNode child = children.get( i );
>             ExprNode otherChild = children.get( i );
>             
>             if ( !child.equals( otherChild ) )
>             {
>                 return false;
>             }
>         }
> Simple change needs to be 
>         for ( int i = 0; i < children.size(); i++ )
>         {
>             ExprNode child = children.get( i );
>             ExprNode otherChild = otherChildren.get( i );
>             
>             if ( !child.equals( otherChild ) )
>             {
>                 return false;
>             }
>         }

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