Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 59845 invoked from network); 16 Aug 2006 21:21:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 21:21:12 -0000 Received: (qmail 69513 invoked by uid 500); 16 Aug 2006 21:21:12 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 69473 invoked by uid 500); 16 Aug 2006 21:21:12 -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 69462 invoked by uid 99); 16 Aug 2006 21:21:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 14:21:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Aug 2006 14:21:11 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50ED67142B7 for ; Wed, 16 Aug 2006 21:18:15 +0000 (GMT) Message-ID: <10204219.1155763095329.JavaMail.jira@brutus> Date: Wed, 16 Aug 2006 14:18:15 -0700 (PDT) From: "Ersin Er (JIRA)" To: dev@directory.apache.org Subject: [jira] Resolved: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples In-Reply-To: <303682915.1143203301308.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=3Dall ] Ersin Er resolved DIRSERVER-603. -------------------------------- Resolution: Fixed Fixed in 1.0-trunks and in 1.1-truks : revision 432027 & 432035. > Exception adding prescriptiveACI subentry from examples > ------------------------------------------------------- > > Key: DIRSERVER-603 > URL: http://issues.apache.org/jira/browse/DIRSERVER-603 > Project: Directory ApacheDS > Issue Type: Bug > Components: ldap > Affects Versions: 1.0-RC1 > Environment: DS 1.0-RC1 > Reporter: J=C3=B6rg Henne > Assigned To: Ersin Er > Fix For: 1.0-RC4 > > > If one tries to run the prescriptive ACI example from the documentation a= t=20 > http://directory.apache.org/subprojects/apacheds/docs/users/enablesearchf= orallusers.html > the server barfs with the following message: > [13:23:58] WARN [org.apache.directory.server.core.authz.TupleCache] - ACI= Item parser failure on 'null'. Cannnot add ACITuples to TupleCache. > java.text.ParseException: Parser failure on ACIItem: > =09{ identificationTag "enableSearchForAllUsers", precedence 14, authe= nticationLevel simple, itemOrUserFirst userFirst: {=20 > userClasses { allUsers }, userPermissions {=20 > { > protectedItems {entry, allUserAttributeTypesAndValues},=20 > grantsAndDenials { grantRead, grantReturnDN, grantBrowse }=20 > } > }=20 > } } > Antlr exception trace: > unexpected char: 0x0A > =09at org.apache.directory.shared.ldap.aci.ACIItemParser.parse(ACIItemPar= ser.java:118) > =09at org.apache.directory.server.core.authz.TupleCache.subentryAdded(Tup= leCache.java:166) > =09at org.apache.directory.server.core.authz.AuthorizationService.add(Aut= horizationService.java:348) > =09at org.apache.directory.server.core.interceptor.InterceptorChain$Entry= $1.add(InterceptorChain.java:1175) > =09at org.apache.directory.server.core.referral.ReferralService.add(Refer= ralService.java:256) > =09at org.apache.directory.server.core.interceptor.InterceptorChain$Entry= $1.add(InterceptorChain.java:1175) > =09at org.apache.directory.server.core.authn.AuthenticationService.add(Au= thenticationService.java:192) > =09at org.apache.directory.server.core.interceptor.InterceptorChain$Entry= $1.add(InterceptorChain.java:1175) > =09at org.apache.directory.server.core.normalization.NormalizationService= .add(NormalizationService.java:89) > =09at org.apache.directory.server.core.interceptor.InterceptorChain.add(I= nterceptorChain.java:700) > =09at org.apache.directory.server.core.partition.DirectoryPartitionNexusP= roxy.add(DirectoryPartitionNexusProxy.java:308) > =09at org.apache.directory.server.core.partition.DirectoryPartitionNexusP= roxy.add(DirectoryPartitionNexusProxy.java:296) > =09at org.apache.directory.server.core.jndi.ServerDirContext.createSubcon= text(ServerDirContext.java:351) > =09at org.apache.directory.server.core.jndi.ServerDirContext.createSubcon= text(ServerDirContext.java:319) > =09at javax.naming.directory.InitialDirContext.createSubcontext(InitialDi= rContext.java:178) > =09at org.apache.directory.server.ldap.support.AddHandler.messageReceived= (AddHandler.java:75) > =09at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(Dem= uxingIoHandler.java:128) > =09at org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolH= andler.messageReceived(LdapProtocolProvider.java:431) > =09at org.apache.mina.common.support.AbstractIoFilterChain$2.messageRecei= ved(AbstractIoFilterChain.java:189) > =09at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessag= eReceived(AbstractIoFilterChain.java:494) > =09at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Ab= stractIoFilterChain.java:52) > =09at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.me= ssageReceived(AbstractIoFilterChain.java:761) > =09at org.apache.mina.filter.LoggingFilter.messageReceived(LoggingFilter.= java:87) > =09at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessag= eReceived(AbstractIoFilterChain.java:494) > =09at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Ab= stractIoFilterChain.java:52) > =09at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.me= ssageReceived(AbstractIoFilterChain.java:761) > =09at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Pr= otocolCodecFilter.java:91) > =09at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessag= eReceived(AbstractIoFilterChain.java:494) > =09at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Ab= stractIoFilterChain.java:52) > =09at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.me= ssageReceived(AbstractIoFilterChain.java:761) > =09at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilt= er.java:665) > =09at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(Thread= PoolFilter.java:421) > =09at org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter= .java:376) > If all \n characters are removed from the example like this: > subentry > .put( > "prescriptiveACI", > "{" > + " identificationTag \"enableSearchForAllUsers\"," > + " precedence 14," > + " authenticationLevel simple," > + " itemOrUserFirst userFirst: " > + " { " > + " userClasses { allUsers }, " > + " userPermissions " > + " { " > + " { " > + " protectedItems {entry, allUserAttributeTypesA= ndValues}, " > + " grantsAndDenials { grantRead, grantReturnDN, = grantBrowse } " > + " } } } }"); > the example works as expected. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira