You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jörg Henne (JIRA)" <di...@incubator.apache.org> on 2006/03/24 13:28:21 UTC

[jira] Created: (DIR-183) Exception adding prescriptiveACI subentry from examples

Exception adding prescriptiveACI subentry from examples
-------------------------------------------------------

         Key: DIR-183
         URL: http://issues.apache.org/jira/browse/DIR-183
     Project: Directory
        Type: Bug
 Environment: DS 1.0-RC1
    Reporter: Jörg Henne
 Assigned to: Alex Karasulu 


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


[jira] Commented: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Jörg Henne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=comments#action_12428655 ] 
            
Jörg Henne commented on DIRSERVER-603:
--------------------------------------

Looks great!

> 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örg Henne
>         Assigned To: Ersin Er
>             Fix For: 1.0-RC4
>
>
> 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

       

[jira] Resolved: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Ersin Er (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=all ]

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örg Henne
>         Assigned To: Ersin Er
>             Fix For: 1.0-RC4
>
>
> 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

       

[jira] Updated: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Commented: (DIR-183) Exception adding prescriptiveACI subentry from examples

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIR-183?page=comments#action_12371736 ] 

Alex Karasulu commented on DIR-183:
-----------------------------------

Jorg,

Please use the DIRAPACHEDS JIRA rather than DIR.  DIRAPACHEDS is for apacheds.  DIR is for general issues not relating to any particular project at Apache Directory like the website and PMC related issues. 

Thanks,
Alex


> Exception adding prescriptiveACI subentry from examples
> -------------------------------------------------------
>
>          Key: DIR-183
>          URL: http://issues.apache.org/jira/browse/DIR-183
>      Project: Directory
>         Type: Bug
>  Environment: DS 1.0-RC1
>     Reporter: Jörg Henne
>     Assignee: Alex Karasulu

>
> 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


[jira] Updated: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=all ]

Alex Karasulu updated DIRSERVER-603:
------------------------------------

    Fix Version: 1.0-RC4
                     (was: 1.0-RC3)

> 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-RC4

>
> 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


[jira] Closed: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-603.
---------------------------------------


closed

> Exception adding prescriptiveACI subentry from examples
> -------------------------------------------------------
>
>                 Key: DIRSERVER-603
>                 URL: https://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örg Henne
>            Assignee: Ersin Er
>             Fix For: 1.0-RC4
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=all ]

Alex Karasulu updated DIRSERVER-603:
------------------------------------

      Component: ldap
    Fix Version: 1.0-RC2
        Version: 1.0-RC1

This seems like a parser issue.  I'd have to test this to be certain.

> 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-RC2

>
> 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


[jira] Commented: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Ersin Er (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=comments#action_12428496 ] 
            
Ersin Er commented on DIRSERVER-603:
------------------------------------

Should have been fixed with http://svn.apache.org/viewvc?view=rev&revision=432027

But I would like to get a feedback from Jorg in order to close this issue.

> 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örg Henne
>         Assigned To: Ersin Er
>             Fix For: 1.0-RC4
>
>
> 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

       

[jira] Assigned: (DIRSERVER-603) Exception adding prescriptiveACI subentry from examples

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-603?page=all ]

Alex Karasulu reassigned DIRSERVER-603:
---------------------------------------

    Assignee: Ersin Er  (was: Alex Karasulu)

Ersin could you have a look at this when you have a chance. 

> 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örg Henne
>         Assigned To: Ersin Er
>             Fix For: 1.0-RC4
>
>
> 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