[
https://issues.apache.org/jira/browse/DIRSERVER-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342765#comment-15342765
]
lucas theisen edited comment on DIRSERVER-2155 at 6/21/16 9:39 PM:
-------------------------------------------------------------------
Attempting to write a unit test... but not sure how to get the search to throw
an exception... For now, the steps to reproduce:
1) Start up a brand new unconfigured instance
2) Delete {{dc=example,dc=com}}
3) {{ldapsearch -H ldap://localhost:10389 -x -D "uid=admin,ou=system" -W -b
"dc=example,dc=com" -s sub -a always -z 1000 "(objectClass=*)" "objectClass"}}
And you will see the OPERATIONS_ERROR
was (Author: [email protected]):
Attempting to write a unit test... but not sure how to get the search to throw
an exception...
> 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)