Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 93442 invoked from network); 16 Jan 2006 16:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 16:02:07 -0000 Received: (qmail 25930 invoked by uid 500); 16 Jan 2006 16:02:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 25850 invoked by uid 500); 16 Jan 2006 16:02:06 -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 25839 invoked by uid 99); 16 Jan 2006 16:02:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 08:02:06 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.66 as permitted sender) Received: from [205.152.59.66] (HELO imf18aec.mail.bellsouth.net) (205.152.59.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 08:02:04 -0800 Received: from ibm59aec.bellsouth.net ([65.80.200.112]) by imf18aec.mail.bellsouth.net with ESMTP id <20060116160144.SEXM6864.imf18aec.mail.bellsouth.net@ibm59aec.bellsouth.net> for ; Mon, 16 Jan 2006 11:01:44 -0500 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm59aec.bellsouth.net with ESMTP id <20060116160143.WPID269.ibm59aec.bellsouth.net@[172.16.1.7]> for ; Mon, 16 Jan 2006 11:01:43 -0500 Message-ID: <43CBC367.8000700@bellsouth.net> Date: Mon, 16 Jan 2006 11:01:43 -0500 From: Alex Karasulu User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: LDAP 0.9.3 . Modify attribute fails with exception References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stefan Zoerner wrote: >>hmmm... What about the fact that the entry was correctly created with >> >> >this not existing attribute? > > >>Isn't it weird that the server accept a creation but not a modification >> >> >in this case? > >Emmanuel is right. We have definitely a problem here, but in the add op, >not in the modify op (as Alex explained, the behavior of the latter is >correct). > > +1 : I overlooked the add disfunction. >E.g. the following entry can be created (note that no attribute "voice" >exists in the schema. > >dn: cn=Kate Bush,dc=example,dc=com >cn: Kate Bush >objectclass: top >objectclass: person >sn: Bush >voice: unbelievable > > This is not good. Especially since this is way easy to check for. Do we already have a JIRA for it? Also we might want to just turn off all checks too like when servers have schema checking totally disabled. >The following operation does neither throw an error nor an exception on >server side > >$ ldapadd -p 10389 -D uid=admin,ou=system -w ***** -f addKate.ldif >adding new entry cn=Kate Bush,dc=example,dc=com > >But searching Kate causes exceptions on the server (not visible to the >client) like > >javax.naming.NamingException: OID for name 'voice' was not found within the >OID >registry > at >org.apache.ldap.server.schema.GlobalOidRegistry.getOid(GlobalOidRegistry.java:176) > at >org.apache.ldap.server.schema.GlobalAttributeTypeRegistry.lookup(GlobalAttributeTypeRegistry.java:124) > at >org.apache.ldap.server.partition.impl.btree.BTreeSearchResultEnumeration.next(BTreeSearchResultEnumeration.java:181) > at >org.apache.ldap.server.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:299) > at >org.apache.ldap.server.enumeration.SearchResultFilteringEnumeration.(SearchResultFilteringEnumeration.java:110) > at >org.apache.ldap.server.collective.CollectiveAttributeService.search(CollectiveAttributeService.java:279) > at >org.apache.ldap.server.interceptor.InterceptorChain$Entry$1.search(InterceptorChain.java:1178) > at >org.apache.ldap.server.operational.OperationalAttributeService.search(OperationalAttributeService.java:255) > >and it is not possible to change the entry afterwards (like Somashish >described in his original issue). > >Seems to me that our schema checks are not consistent. > > Agreed :(. We need eventually to rewrite this whole subsystem. It's really in shambles. Alex