Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12104D366 for ; Fri, 6 Jul 2012 13:59:37 +0000 (UTC) Received: (qmail 43998 invoked by uid 500); 6 Jul 2012 13:59:36 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 43807 invoked by uid 500); 6 Jul 2012 13:59:36 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 43751 invoked by uid 99); 6 Jul 2012 13:59:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2012 13:59:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id BC41F14285A for ; Fri, 6 Jul 2012 13:59:34 +0000 (UTC) Date: Fri, 6 Jul 2012 13:59:34 +0000 (UTC) From: "Yuliya Polyeno (JIRA)" To: issues@commons.apache.org Message-ID: <871844896.14110.1341583174773.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (NET-472) FTPClient doesn't remember __dataConnectionMode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Yuliya Polyeno created NET-472: ---------------------------------- Summary: FTPClient doesn't remember __dataConnectionMode Key: NET-472 URL: https://issues.apache.org/jira/browse/NET-472 Project: Commons Net Issue Type: Bug Components: FTP Reporter: Yuliya Polyeno Priority: Minor There is an issue with FTPClient. 1) When you create FTPClient in constructor you invoke __initDefaults() which would set __dataConnectionMode into ACTIVE_LOCAL_DATA_CONNECTION_MODE. 2) if you try after creation set up __dataConnectionMode into PASSIVE_LOCAL_DATA_CONNECTION_MODE it will be overridden when you would invoke connect() method because connect method again will invoke __initDefaults() which will override my setup, the same will happen when you disconect() because it will invoke __initDefaults() again. I believe this is wrong behavior I don't need to switch on passive mode every time after connect. It should be only done when I create FTPClient. -- 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