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

Reply via email to