| Alex Karasulu (JIRA) 2006-05-01, 1:11 am |
| [ http://issues.apache.org/jira/brows...-603?page=3Dall ]
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=C3=B6rg Henne
> Assignee: Alex Karasulu
> Fix For: 1.0-RC3
>
> If one tries to run the prescriptive ACI example from the documentation a=
t=20
> http://directory.apache.org/subproj.../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:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|