Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 89958 invoked from network); 18 Feb 2009 22:10:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 22:10:23 -0000 Received: (qmail 89452 invoked by uid 500); 18 Feb 2009 22:10:22 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 89412 invoked by uid 500); 18 Feb 2009 22:10:22 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 89399 invoked by uid 99); 18 Feb 2009 22:10:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 14:10:22 -0800 X-ASF-Spam-Status: No, hits=-1998.2 required=10.0 tests=ALL_TRUSTED,SUBJECT_DRUG_GAP_L X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 22:10:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4E6A234C498 for ; Wed, 18 Feb 2009 14:10:01 -0800 (PST) Message-ID: <507075252.1234995001870.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 14:10:01 -0800 (PST) From: "Steve hammond (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSHARED-25) BranchNormalizedVisitor cannot handle Nots In-Reply-To: <1525153081.1234980361893.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSHARED-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve hammond updated DIRSHARED-25: ----------------------------------- Attachment: BranchNorm.patch > BranchNormalizedVisitor cannot handle Nots > ------------------------------------------ > > Key: DIRSHARED-25 > URL: https://issues.apache.org/jira/browse/DIRSHARED-25 > Project: Directory Shared > Issue Type: Bug > Affects Versions: 0.9.11 > Reporter: Steve hammond > Attachments: BranchNorm.patch > > Original Estimate: 2h > Remaining Estimate: 2h > > SearchRequestImpl uses BranchNormalizedVisitor and fails on comparisons if there is a not in the clause. > To fix it I removed the (if NotNode) return null. And all was well. > I tried to add the following test to BranchNormalizedVisitorTest > public void testBranchNormalizedVisitor4() throws Exception > { > ExprNode ori = FilterParser.parse( "(&(!(sn=Bob))(ou=Human Resources)(uid=akarasulu))" ); > ExprNode altered = FilterParser.parse( "(&(ou=Human Resources)(uid=akarasulu)(!(sn=Bob)))" ); > BranchNormalizedVisitor visitor = new BranchNormalizedVisitor(); > visitor.visit( altered ); > assertTrue( ori.toString().equals( altered.toString() ) ); > > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.