directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lucas theisen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2155) Deleting a context entry then searching using the same value as a baseDn results in OPERATIONS_ERROR
Date Wed, 22 Jun 2016 13:27:57 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344300#comment-15344300
] 

lucas theisen commented on DIRSERVER-2155:
------------------------------------------

I am still unable to reproduce within the integration tests...  I am starting to wonder if
this could be due to additional indexes i create for some custom attributes...  Maybe because
they apply at the partition level, and the context entry is at that level, maybe they are
not properly cleared and the search gets screwy?

> Deleting a context entry then searching using the same value as a baseDn results in OPERATIONS_ERROR
> ----------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-2155
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2155
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: lucas theisen
>
> If you have a context entry (perhaps dc=foo,dc=bar) that you delete, then issue a search
using that as the baseDn, you get an OPERATIONS_ERROR:
> {code}
> OPERATIONS_ERROR: failed for MessageType : SEARCH_REQUEST
> Message ID : 2
>     SearchRequest
>         baseDn : 'dc=foo,dc=bar'
>         filter : '(objectClass=*)'
>         scope : base object
>         typesOnly : false
>         Size Limit : no limit
>         Time Limit : no limit
>         Deref Aliases : deref Finding Base Obj
>         attributes : '*', '+'
> {code}
> Tuning up the debug gives this stack trace:
> {code}
> org.apache.directory.api.ldap.model.message.SearchRequestImpl@4fea602f: null:
> org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
>         at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.search(AbstractBTreePartition.java:1132)
>         at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.search(DefaultPartitionNexus.java:611)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor$1.search(BaseInterceptor.java:264)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.subtree.SubentryInterceptor.search(SubentryInterceptor.java:1568)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.search(CollectiveAttributeInterceptor.java:174)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.search(OperationalAttributeInterceptor.java:437)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.schema.SchemaInterceptor.search(SchemaInterceptor.java:1273)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.authz.DefaultAuthorizationInterceptor.search(DefaultAuthorizationInterceptor.java:337)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.search(AciAuthorizationInterceptor.java:1208)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.authn.AuthenticationInterceptor.search(AuthenticationInterceptor.java:1337)
>         at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:677)
>         at org.apache.directory.server.core.normalization.NormalizationInterceptor.search(NormalizationInterceptor.java:304)
>         at org.apache.directory.server.core.DefaultOperationManager.search(DefaultOperationManager.java:1342)
>         at org.apache.directory.server.core.shared.DefaultCoreSession.search(DefaultCoreSession.java:1122)
>         at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.doSimpleSearch(SearchRequestHandler.java:827)
>         at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleIgnoringReferrals(SearchRequestHandler.java:1179)
>         at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleWithReferrals(SearchRequestHandler.java:1272)
>         at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:223)
>         at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:93)
>         at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
>         at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
>         at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221)
>         at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
>         at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
>         at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
>         at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
>         at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:475)
>         at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:429)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
>         at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.saveContextCsn(AbstractBTreePartition.java:3362)
>         at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.search(AbstractBTreePartition.java:1128)
>         ... 38 more
> Caused by: java.lang.NullPointerException
>         at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.saveContextCsn(AbstractBTreePartition.java:3348)
>         ... 39 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message