Issue Details (XML | Word | Printable)

Key: DIRSERVER-723
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Lecharny
Reporter: Pierre-Arnaud Marcelot
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Possible double add of extensibleMatchFilter in filter tree

Created: 29/Aug/06 04:58 PM   Updated: 31/Aug/06 08:10 AM
Component/s: ldap
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 30/Aug/06 12:17 AM


 Description  « Hide
In internal class "GrammarAction("Init extensible match Filter" )" (line 97), I think that the extensibleMatchFilter may be added twice in the Filter tree.

The following code add the Filter :
------------------
// Get the parent, if any
                    Filter currentFilter = searchRequest.getCurrentFilter();

                    if ( currentFilter != null )
                    {
                        // Ok, we have a parent. The new Filter will be added to
                        // this parent, then.
                        ( ( ConnectorFilter ) currentFilter ).addFilter( extensibleMatchFilter );
                        extensibleMatchFilter.setParent( currentFilter );
                    }
                    else
                    {
                        // No parent. This Filter will become the root.
                        searchRequest.setFilter( extensibleMatchFilter );
                        extensibleMatchFilter.setParent( searchRequest );
                    }
------------------

and then, the addCurrentFilter( extensibleMatchFilter ) method is called and does the same thing another time.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Lecharny added a comment - 30/Aug/06 12:17 AM
Whaoo !!! What a bug !

Thanks a lot for the find, I could have spend hours trying to find it later !

Fixed, the code has been removed.

Pierre-Arnaud Marcelot added a comment - 31/Aug/06 08:10 AM
Great!

I'm closing the issue.