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 65B7210C62 for ; Tue, 30 Jul 2013 10:26:06 +0000 (UTC) Received: (qmail 55383 invoked by uid 500); 30 Jul 2013 10:26:03 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 53067 invoked by uid 500); 30 Jul 2013 10:25:53 -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 52473 invoked by uid 99); 30 Jul 2013 10:25:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 10:25:49 +0000 Date: Tue, 30 Jul 2013 10:25:49 +0000 (UTC) From: "Pierre-Arnaud Marcelot (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRAPI-151) Result codes from extended operations are lost MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRAPI-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723675#comment-13723675 ] Pierre-Arnaud Marcelot commented on DIRAPI-151: ----------------------------------------------- I was able to reproduce the issue. Working on it... > Result codes from extended operations are lost > ---------------------------------------------- > > Key: DIRAPI-151 > URL: https://issues.apache.org/jira/browse/DIRAPI-151 > Project: Directory Client API > Issue Type: Bug > Reporter: Daniel Fisher > > Invoking LdapConnection#extended(String, byte[]) always returns success. > Performing a PasswordModifyOperation with an incorrect old password should result in an error code 53, unwilling to perform. > However, the API returns error code 0, success, for the following code: > {code} > ExtendedResponse response = conn.extended( > "1.3.6.1.4.1.4203.1.11.1", > new byte[] {...}); > response.getLdapResult(); // always returns success > {code} > The bug may be around line 3106 of LdapNetworkConnection, where the actual response is discarded in favor of a response built from the request object. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira