directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Deadman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20
Date Wed, 07 Jun 2017 23:03:18 GMT

    [ 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 <ou=groups,dc=example,dc=org> 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 <ou=groups,dc=example,dc=org> 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)

Mime
View raw message