Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 19A31C282 for ; Fri, 8 Jun 2012 00:25:24 +0000 (UTC) Received: (qmail 79239 invoked by uid 500); 8 Jun 2012 00:25:23 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79181 invoked by uid 500); 8 Jun 2012 00:25:23 -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 79173 invoked by uid 99); 8 Jun 2012 00:25:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 00:25:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B87B91402B8 for ; Fri, 8 Jun 2012 00:25:23 +0000 (UTC) Date: Fri, 8 Jun 2012 00:25:23 +0000 (UTC) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Message-ID: <413044469.50670.1339115123757.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1077876378.49585.1339101624263.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (DIRAPI-89) EntryCursorImpl loops forever in next() when using AD Server with referrals MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRAPI-89?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13291= 445#comment-13291445 ]=20 Alex Karasulu commented on DIRAPI-89: ------------------------------------- AD Server =3D Active Directory Server, or Apache Directory Server? =20 > EntryCursorImpl loops forever in next() when using AD Server with referra= ls > -------------------------------------------------------------------------= -- > > Key: DIRAPI-89 > URL: https://issues.apache.org/jira/browse/DIRAPI-89 > Project: Directory Client API > Issue Type: Bug > Affects Versions: 1.0.0-M12 > Environment: Mac > Reporter: Dave Briccetti > Labels: ActiveDirectory, cursor > > Search for a user that doesn=E2=80=99t exist on AD. Cursor provides four = referrals, but no SearchResultDone. > val searchArg =3D "(&(objectclass=3D%s)(samaccountname=3D%s))".format(s.o= bjectClass, user) > val cursor =3D connection.search(s.baseDn, searchArg, SearchScope.SUBTREE= , "*") > next() hangs in this loop ending on line 102: > while ( !( response instanceof SearchResultDone ) ); > Using this code instead causes a SearchResultDone to appear after three r= eferrals: > val searchRequest =3D new SearchRequestImpl().setBase(new Dn(s.baseDn)) > .setFilter(searchArg).setScope(SearchScope.SUBTREE).addControl(new Mana= geDsaITImpl()) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira