[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2018-04-06 Thread Emmanuel Lecharny (JIRA)

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

Emmanuel Lecharny commented on DIRSERVER-2091:
--

Hi,

 

no, it's going to be in 2.0.0-M25. We are expecting to cut a release quite soon.

> 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
>Priority: Major
> Fix For: 2.0.0-M25
>
> Attachments: hunderd-users.ldif, logerror.txt, 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
(v7.6.3#76005)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2018-04-06 Thread Sabbir Ahmed (JIRA)

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

Sabbir Ahmed commented on DIRSERVER-2091:
-

Hi,

Is this fix shipped in ApacheDS 2.0.0-M24? Running into the same error while 
using that version. Still have to manually create the tmp directory and add it 
to wrapper-instance.conf to workaround it.

Thanks

 

> 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
>Priority: Major
> Attachments: hunderd-users.ldif, logerror.txt, 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
(v7.6.3#76005)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-13 Thread Emmanuel Lecharny (JIRA)

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

Emmanuel Lecharny commented on DIRSERVER-2091:
--

My bad ! Fixed with http://svn.apache.org/viewvc?rev=1798645&view=rev

> 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, logerror.txt, 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.4.14#64029)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-13 Thread Brian Brooks (JIRA)

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

Brian Brooks commented on DIRSERVER-2091:
-

[~elecharny] The current ApacheDS 2.0 trunk 
(http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies) 
fails to build due to this checkstyle failure introduced by the patch mentioned 
in the previous comment on DIRSERVER-2091.

{code}
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ apacheds-core-shared 
---
[INFO] There are 2 errors reported by Chcd eckstyle 7.8 with 
directory-checks.xml ruleset.
[ERROR] 
src\main\java\org\apache\directory\server\core\shared\DefaultCoreSession.java:[1346,23]
 (whitespace) ParenPad: '(' is not followed by whitespace.
[ERROR] 
src\main\java\org\apache\directory\server\core\shared\DefaultCoreSession.java:[1346,142]
 (whitespace) ParenPad: ')' is not preceded with whitespace.
{code}

This line of logging needs to have whitespace

{code}
LOG.error("Error creating temp file in directory {} for sorting: {}",  
System.getProperty( "java.io.tmpdir" ),  e.getMessage(), e);
{code}

like

{code}
LOG.error( "Error creating temp file in directory {} for sorting: {}",  
System.getProperty( "java.io.tmpdir" ),  e.getMessage(), e );
{code}

> 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, logerror.txt, 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.4.14#64029)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-11 Thread Emmanuel Lecharny (JIRA)

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

Emmanuel Lecharny commented on DIRSERVER-2091:
--

Patch applied with http://svn.apache.org/viewvc?rev=1798350&view=rev

Many thanks !

> 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, logerror.txt, 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)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-08 Thread Hal Deadman (JIRA)

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

Hal Deadman commented on DIRSERVER-2091:


The patch is in the attached logerror.txt file. I think the issue on windows is 
that the service is running as "local system account" and it doesn't have 
permission to create new files in whatever java.io.tmpdir is set to by default. 
If you run from the command-line it works, but not when it's running as a 
service. 

Apparently on windows java calls GetTempPath  to get the value for 
java.io.tmpdir so it should always be set to something, although it may not be 
writable. 

The GetTempPath function checks for the existence of environment variables in 
the following order and uses the first path found:

The path specified by the TMP environment variable.
The path specified by the TEMP environment variable.
The path specified by the USERPROFILE environment variable.
The Windows directory.

> 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, logerror.txt, 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)


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-07 Thread Emmanuel Lecharny (JIRA)

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

Emmanuel Lecharny commented on DIRSERVER-2091:
--

Hi,

the error you get is related to the fact that the server can't create a 
temporary file to store the sorted entries. You have to check on your system if 
the temp directory exists. On windows, it's supposed to be {{C:\\WINNT\\TEMP}}, 
unless a different value is set in {{java.io.tmpdir}}.

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


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-07 Thread Hal Deadman (JIRA)

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

[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2017-06-07 Thread Hal Deadman (JIRA)

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

Hal Deadman commented on DIRSERVER-2091:


I am getting this error with some code that used to work (and works in other 
environment). I am running M23 on windows with Java 8. Not sure what changed, 
but I think it must be something in the directory because the client code used 
to work. I had one directory that I set up from scratch using an ldif backup 
and another server that I am trying to recover after the server ran out of disk 
space, and both are getting the error. 

I can get the error both from a Java client using spring ldap and from 
ldapsearch but only I specify server side sorting and only if the filter 
returns more than one result.

This is what error looks like in ldapsearch:
# ldapsearch -H ldap://10.137.17.132:389 -E sss=cn -x -D "uid=admin,ou=system" 
-w xyz -b "ou=groups,dc=example,dc=org" -s sub  
"(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=oj.c,ou=People,dc=example,dc=org))"
 cn
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: 
(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=oj.c,ou=People,dc=example,dc=org))
# requesting: cn
# with server side sorting control
#

# search result
search: 2
result: 54 Loop detected
text: LOOP_DETECT: failed for MessageType : SEARCH_REQUEST
Message ID : 2
S
 earchRequest
baseDn : 'ou=groups,dc=example,dc=org'
filter : 
'(&(objectClass=groupofuniquenames:[10])(uniqueMember=0.9.2342.19200300.100.1.1=oj.c,2.5.4.11=people,0.9.2342.19200300.100.1.25=example,0.9.2342.19200300.100.1.25=org:[∞]))'
scope : whole subtree
typesOnly : false
Size Limit : no limit
Time Limit : no limit
Deref Aliases : never Deref Aliases
attributes : 'cn'
org.apache.directory.api.ldap.model.message.SearchRequestImpl@4e0d0648SortRequestControlImpl
 [sortKeys=[SortKey : [cn]]]: java.io.IOException: The system cannot find the 
path specified


In java I get same message more or less and it refers to  java.io.IOException: 
The system cannot find the path specified

I don't get any errors on the server in the apacheds.log but I might need to 
turn up the logging. 

This is the same ldapsearch without the server-side sorting turned on:

# ldapsearch -H ldap://10.137.17.132:389 -x -D "uid=admin,ou=system" -w xyz -b 
"ou=groups,dc=example,dc=org" -s sub  
"(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=oj.c,ou=People,dc=example,dc=org))"
 cn
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: 
(&(objectClass=groupOfUniqueNames)(uniqueMember=uid=oj.c,ou=People,dc=example,dc=org))
# requesting: cn
#

# XYZ BI Manager, XYZ, Groups, example.org
dn: cn=XYZ BI Manager,ou=XYZ,ou=Groups,dc=example,dc=org
cn: XYZ BI Manager

# XYZ User, XYZ, Groups, example.org
dn: cn=XYZ User,ou=XYZ,ou=Groups,dc=example,dc=org
cn: XYZ User

# XYZ DBManager, XYZ, Groups, example.org
dn: cn=XYZ DBManager,ou=XYZ,ou=Groups,dc=example,dc=org
cn: XYZ DBManager

# search result
search: 2
result: 0 Success

# numResponses: 4
# numEntries: 3



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


[jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20

2015-09-10 Thread Danil Flores (JIRA)

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

Danil Flores commented on DIRSERVER-2091:
-

This was on Windows 7 64bit with Java JRE 1.8.0_40.

I tried doing the same test on an Ubuntu VM with same version of ApacheDS and 
Java JRE 1.7.0_80 and it worked. It may be a problem on windows only or with 
the 1.8 JRE.

> 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.4#6332)