Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 82254 invoked from network); 22 May 2007 00:28:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2007 00:28:44 -0000 Received: (qmail 29463 invoked by uid 500); 22 May 2007 00:28:45 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 29371 invoked by uid 500); 22 May 2007 00:28:45 -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 29257 invoked by uid 99); 22 May 2007 00:28:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 17:28:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 17:28:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 58664714057 for ; Mon, 21 May 2007 17:28:17 -0700 (PDT) Message-ID: <10759819.1179793697360.JavaMail.jira@brutus> Date: Mon, 21 May 2007 17:28:17 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-936) Using unknown OIDs or OIDs of wrong schema elements as a returning attribute causes search operations to fail In-Reply-To: <5928318.1179478996405.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/DIRSERVER-936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497647 ] Emmanuel Lecharny commented on DIRSERVER-936: --------------------------------------------- Ok, fixed in trunk : http://svn.apache.org/viewvc?view=rev&rev=540369 tests added : http://svn.apache.org/viewvc?view=rev&rev=540366 I'm not sure that the 1.0.1 server is impacted at all, I have run the same tests, and they are running ok. Stefan, can you double check on 1.5 and 1.0 ? Thanks ! > Using unknown OIDs or OIDs of wrong schema elements as a returning attribute causes search operations to fail > -------------------------------------------------------------------------------------------------------------- > > Key: DIRSERVER-936 > URL: https://issues.apache.org/jira/browse/DIRSERVER-936 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.1 > Environment: * ApacheDS 1.5.1 (SNAPSHOT) > * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) > * Windows XP Professional SP2 > Reporter: Stefan Zoerner > Assigned To: Emmanuel Lecharny > Priority: Critical > > If I perform a search operation, and use wrong OIDs as returning attributes, this causes an error: > $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(objectClass=*)" 9.9.9 > ldap_search: Unknown error > ldap_search: additional info: failed on search operation: attributeType w/ OID 9.9.9 not registered! > $ > The expected result is that the 9.9.9 (as a unknown attribute type in text format) is ignored. > The problem does also occur with known OIDs of from schema elements (object classes, for instance), like > $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(objectClass=*)" 2.5.6.6 > ldap_search: Unknown error > ldap_search: additional info: failed on search operation: attributeType w/ OID 2.5.6.6 not registered! > $ > 2.5.6.6 is the OID of object class person -- it is also possible to use the object class name instead, like > $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(objectClass=*)" person > ldap_search: Unknown error > ldap_search: additional info: failed on search operation: attributeType w/ OID 2.5.6.6 not registered! > $ > I assume, it is an error in the schema registries, or how they are used in searches. > Fixing this error will likely resolve DIRSERVER-927 as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.