Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 13547200CB0 for ; Fri, 9 Jun 2017 02:01:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 11E9E160BE5; Fri, 9 Jun 2017 00:01:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 57A45160BD5 for ; Fri, 9 Jun 2017 02:01:13 +0200 (CEST) Received: (qmail 69849 invoked by uid 500); 9 Jun 2017 00:01:12 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 69831 invoked by uid 99); 9 Jun 2017 00:01:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 00:01:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 030AFC1380 for ; Fri, 9 Jun 2017 00:01:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id JwJGYQm0PPiu for ; Fri, 9 Jun 2017 00:01:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 011175FD16 for ; Fri, 9 Jun 2017 00:01:10 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CDD6BE0D96 for ; Fri, 9 Jun 2017 00:01:07 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 485D621E15 for ; Fri, 9 Jun 2017 00:01:03 +0000 (UTC) Date: Fri, 9 Jun 2017 00:01:03 +0000 (UTC) From: "Hal Deadman (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-2091) Server Side Sort Control Broken in 2.0.0 M20 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 00:01:14 -0000 [ 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)