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 7EC499873 for ; Fri, 20 Apr 2012 15:13:04 +0000 (UTC) Received: (qmail 49518 invoked by uid 500); 20 Apr 2012 15:13:04 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 49483 invoked by uid 500); 20 Apr 2012 15:13:04 -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 49476 invoked by uid 99); 20 Apr 2012 15:13:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 15:13:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 15:13:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B70F941941 for ; Fri, 20 Apr 2012 15:12:40 +0000 (UTC) Date: Fri, 20 Apr 2012 15:12:40 +0000 (UTC) From: "Sumit Raja (Created) (JIRA)" To: dev@directory.apache.org Message-ID: <2042830727.10036.1334934760751.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRAPI-83) Debug logging causes never ending loop whn decoding messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Debug logging causes never ending loop whn decoding messages ------------------------------------------------------------ Key: DIRAPI-83 URL: https://issues.apache.org/jira/browse/DIRAPI-83 Project: Directory Client API Issue Type: Bug Affects Versions: 1.0.0-M11 Environment: Fedora 16 x64, Java 7, OpenLDAP 2.4.26 Reporter: Sumit Raja Priority: Minor When a lookup for an entry is done with debug enabled the message decoding goes into a continuous loop till the search times out. This happens with OpenLDAP when the "ERR_00043_REMAINING_BYTES_FOR_DECODED_PDU The PDU has been fully decoded but there are still bytes in the buffer." error occurs I don't have a test case but a simple LdapConnection.lookup with debug logging enabled causes this. The fix looks pretty straightforward - the actual offending code is in org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(). The buffer.position is set(:134) and reset(:145) without a mark being set. The workaround is to turn off debug logging for the "org.apache.directory" logger -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira