You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2006/05/01 05:28:48 UTC
[jira] Updated: (DIRSERVER-603) Exception adding prescriptiveACI
subentry from examples
[ http://issues.apache.org/jira/browse/DIRSERVER-603?page=all ]
Alex Karasulu updated DIRSERVER-603:
------------------------------------
Fix Version: 1.0-RC3
(was: 1.0-RC2)
> Exception adding prescriptiveACI subentry from examples
> -------------------------------------------------------
>
> Key: DIRSERVER-603
> URL: http://issues.apache.org/jira/browse/DIRSERVER-603
> Project: Directory ApacheDS
> Type: Bug
> Components: ldap
> Versions: 1.0-RC1
> Environment: DS 1.0-RC1
> Reporter: Jörg Henne
> Assignee: Alex Karasulu
> Fix For: 1.0-RC3
>
> If one tries to run the prescriptive ACI example from the documentation at
> http://directory.apache.org/subprojects/apacheds/docs/users/enablesearchforallusers.html
> the server barfs with the following message:
> [13:23:58] WARN [org.apache.directory.server.core.authz.TupleCache] - ACIItem parser failure on 'null'. Cannnot add ACITuples to TupleCache.
> java.text.ParseException: Parser failure on ACIItem:
> { identificationTag "enableSearchForAllUsers", precedence 14, authenticationLevel simple, itemOrUserFirst userFirst: {
> userClasses { allUsers }, userPermissions {
> {
> protectedItems {entry, allUserAttributeTypesAndValues},
> grantsAndDenials { grantRead, grantReturnDN, grantBrowse }
> }
> }
> } }
> Antlr exception trace:
> unexpected char: 0x0A
> at org.apache.directory.shared.ldap.aci.ACIItemParser.parse(ACIItemParser.java:118)
> at org.apache.directory.server.core.authz.TupleCache.subentryAdded(TupleCache.java:166)
> at org.apache.directory.server.core.authz.AuthorizationService.add(AuthorizationService.java:348)
> at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1175)
> at org.apache.directory.server.core.referral.ReferralService.add(ReferralService.java:256)
> at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1175)
> at org.apache.directory.server.core.authn.AuthenticationService.add(AuthenticationService.java:192)
> at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1175)
> at org.apache.directory.server.core.normalization.NormalizationService.add(NormalizationService.java:89)
> at org.apache.directory.server.core.interceptor.InterceptorChain.add(InterceptorChain.java:700)
> at org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy.add(DirectoryPartitionNexusProxy.java:308)
> at org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy.add(DirectoryPartitionNexusProxy.java:296)
> at org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext(ServerDirContext.java:351)
> at org.apache.directory.server.core.jndi.ServerDirContext.createSubcontext(ServerDirContext.java:319)
> at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:178)
> at org.apache.directory.server.ldap.support.AddHandler.messageReceived(AddHandler.java:75)
> at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:128)
> at org.apache.directory.server.ldap.LdapProtocolProvider$LdapProtocolHandler.messageReceived(LdapProtocolProvider.java:431)
> at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:494)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.LoggingFilter.messageReceived(LoggingFilter.java:87)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:494)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:91)
> at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:494)
> at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
> at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:761)
> at org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.java:665)
> at org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolFilter.java:421)
> at 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, allUserAttributeTypesAndValues}, "
> + " grantsAndDenials { grantRead, grantReturnDN, grantBrowse } "
> + " } } } }");
> the example works as expected.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira