[
https://issues.apache.org/jira/browse/DIRSERVER-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16041880#comment-16041880
]
Hal Deadman commented on DIRSERVER-2091:
----------------------------------------
When I turned on debug on the server, the message that came back to ldapsearch
included the stack trace of the IOException. The issue was that it couldn't
create the tmp file, presumably b/c java.io.tmpdir wasn't set to something
writable by the service user (local system). I had forgotten to configure that
on the new server I had set up and when I also forgot to create the folder on
the server I was recovering.
It would be really nice if this error got logged on the server...
org.apache.directory.api.ldap.model.message.SearchRequestImpl@e16f386
6SortRequestControlImpl [sortKeys=[SortKey : [cn]]]: java.io.IOException: The
system cannot find the path specified:
org.apache.directory.api.ldap.model.exc
eption.LdapException: java.io.IOException: The system cannot find the path
specified
at org.apache.directory.server.core.shared.DefaultCoreSession.search(
DefaultCoreSession.java:1153)
at
org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.doSimpleSearch(SearchRequestHandler.java:810)
at
org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleIgnoringReferrals(SearchRequestHandler.java:1164)
at
org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleWithReferrals(SearchRequ
estHandler.java:1258)
at
org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:212)
at
org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:92)
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:243)
at
org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:216)
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(Defaul
tIoFilterChain.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:476)
at
org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.
java:430)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at
org.apache.directory.server.core.shared.DefaultCoreSession.sortResults(DefaultCoreSession.java:1332)
at
org.apache.directory.server.core.shared.DefaultCoreSession.search(DefaultCoreSession.java:1126)
... 18 more
# numResponses: 1
> Server Side Sort Control Broken in 2.0.0 M20
> --------------------------------------------
>
> Key: DIRSERVER-2091
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2091
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 2.0.0-M20
> Reporter: Danil Flores
> Attachments: hunderd-users.ldif, sort-result.ldif
>
>
> Given a partition with several objects with objectClass=inetOrgPerson, we
> want to be able to perform a search with a server-side-sort request control.
> The following ldapsearch query was giving the correct results in ApacheDS
> 2.0.0 M19:
> ldapsearch -H ldap://localhost:10389 -x -D "uid=admin,ou=system" -W -b
> "dc=example,dc=com" -s sub -a always -z 1000 "(objectClass=inetOrgPerson)"
> "objectClass" -E sss=-cn:2.5.13.2
> However in ApacheDS 2.0.0 M20, we get the following error upon running the
> same query against a similar data set:
> # search result
> search: 2
> result: 54 Loop detected
> text: LOOP_DETECT: failed for MessageType : SEARCH_REQUEST
> Message ID : 2
>
> SearchRequest
> baseDn : 'dc=example,dc=com'
> filter : '(objectCla
> ss=inetorgperson:[5])'
> scope : whole subtree
> typesOnly : false
> Size Limit : 1000
> Time Limit : no limit
> Deref Aliases : deref Always
> attributes : 'objectClass'
> org.apache.directory.api.ldap.model.message.SearchRequestImpl@38b18ca0SortRequestControlImpl
> [sortKeys=[SortKey : [cn, 2.5.13.2,reverse]]]: java.io.IOException: The
> system cannot find the path specified
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)