Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 55432 invoked from network); 15 Sep 2010 11:52:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 11:52:59 -0000 Received: (qmail 40895 invoked by uid 500); 15 Sep 2010 11:52:59 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 40687 invoked by uid 500); 15 Sep 2010 11:52:57 -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 40675 invoked by uid 99); 15 Sep 2010 11:52:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 11:52:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 11:52:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8FBqZDD004246 for ; Wed, 15 Sep 2010 11:52:35 GMT Message-ID: <27795670.202571284551555658.JavaMail.jira@thor> Date: Wed, 15 Sep 2010 07:52:35 -0400 (EDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1553) Incorrect LDAP search query filter decoding depending on items order In-Reply-To: <23217117.202381284550953289.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909701#action_12909701 ] Emmanuel Lecharny commented on DIRSERVER-1553: ---------------------------------------------- Doh... Seems like a real bug. I will investigate this one fast. > Incorrect LDAP search query filter decoding depending on items order > -------------------------------------------------------------------- > > Key: DIRSERVER-1553 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1553 > Project: Directory ApacheDS > Issue Type: Bug > Components: ldap > Affects Versions: 2.0.0 > Reporter: Victor Antonovich > Assignee: Emmanuel Lecharny > Attachments: jagplay-data.ldif, jagplay-partition.ldif, jagplay-schema.ldif > > > In current trunk version of ApacheDS some search queries decoded incorrectly. For example, search query with filter: > (&(&(jagplayUserGroup=Active)(!(jagplayUserGroup=Banned))(jagplayUserNickname=admin))) > is decoded correctly with log: > [15:18:02] DEBUG [org.apache.directory.shared.ldap.codec.LdapDecoder] - Decoded LdapMessage : SearchRequest > baseDn : 'ou=users,dc=jagplay,dc=com' > filter : '&(&(jagplayUserGroup=Active)(!(jagplayUserGroup=Banned))(jagplayUserNickname=admin))' > scope : whole subtree > typesOnly : false > Size Limit : 1000 > Time Limit : no limit > Deref Aliases : deref Always > attributes : 'objectClass' > but same query with only swapped items: > (&(jagplayUserNickname=admin)(&(jagplayUserGroup=Active)(!(jagplayUserGroup=Banned)))) > is decoded incorrectly with message: > [15:28:43] DEBUG [org.apache.directory.shared.ldap.codec.LdapDecoder] - Decoded LdapMessage : SearchRequest > baseDn : 'ou=users,dc=jagplay,dc=com' > filter : '&(jagplayUserGroup=Active)(!(jagplayUserGroup=Banned))' > scope : whole subtree > typesOnly : false > Size Limit : 1000 > Time Limit : no limit > Deref Aliases : deref Always > attributes : 'objectClass' > so top AND assertion with (jagplayUserNickname=admin) item is lost completely and search results are totally wrong. > Seems like this behavior was introduced after commit 987606 "merging changes done by Emmanuel in codec message merge branch". > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.