Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 35760 invoked from network); 9 Mar 2009 19:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 19:54:14 -0000 Received: (qmail 82184 invoked by uid 500); 9 Mar 2009 19:54:13 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 82157 invoked by uid 500); 9 Mar 2009 19:54:13 -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 82148 invoked by uid 99); 9 Mar 2009 19:54:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 12:54:13 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 19:54:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 700F4234C003 for ; Mon, 9 Mar 2009 12:53:50 -0700 (PDT) Message-ID: <986070795.1236628430454.JavaMail.jira@brutus> Date: Mon, 9 Mar 2009 12:53:50 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Assigned: (DIRSERVER-1326) Unable to search on a custom attribute of type directory string unless I've set a matching rule In-Reply-To: <322473751.1236614690535.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny reassigned DIRSERVER-1326: -------------------------------------------- Assignee: Emmanuel Lecharny > Unable to search on a custom attribute of type directory string unless I've set a matching rule > ----------------------------------------------------------------------------------------------- > > Key: DIRSERVER-1326 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1326 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.4 > Environment: 64-bit Ubuntu Linux, Java version 1.6.0_12 > Reporter: Kevin Kovach > Assignee: Emmanuel Lecharny > > I have created a custom auxiliary objectclass with one custom attribute. That attribute is of type directory string, and is used as an id. Here are the schema objects. I have replaced my OID with x.x.x.x > dn: m-oid=x.x.x.x.1.16, ou=objectClasses, cn=myschema, ou=schema > objectclass: metaObjectClass > objectclass: metaTop > objectclass: top > m-oid: x.x.x.x.1.16 > m-name: myObject > m-typeObjectClass: AUXILIARY > m-must: myId > dn: m-oid=x.x.x.x.1.15, ou=attributeTypes, cn=myschema, ou=schema > objectclass: metaAttributeType > objectclass: metaTop > objectclass: top > m-oid: x.x.x.x.1.15 > m-name: myId > m-syntax: 1.3.6.1.4.1.1466.115.121.1.15 > m-singleValue: TRUE > I have populated my directory with several objects of this custom objectclass type, which contain the custom id attribute. When I attempt to search the DIT for an object with a specific value for myId, I get the following error... > ERROR httpSSLWorkerThread-8081-0 localhost - NamingException: [LDAP: error code 80 - OTHER: failed for SearchRequest > baseDn : '2.5.4.11=myorg,0.9.2342.19200300.100.1.25=mydomain,0.9.2342.19200300.100.1.25=com' > filter : '(x.x.x.x.1.15=j9cinXz40mEpCI6cWxZJ70ETV:[9223372036854775807])' > scope : whole subtree > typesOnly : false > Size Limit : no limit > Time Limit : no limit > Deref Aliases : deref Always > attributes : > : java.lang.String cannot be cast to [B] > If I modify the custom attribute to have a matching rule of "m-equality: caseExactMatch" then the error seems to go away. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.