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 4E9B118264 for ; Sat, 2 Apr 2016 19:20:26 +0000 (UTC) Received: (qmail 72057 invoked by uid 500); 2 Apr 2016 19:20:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 71958 invoked by uid 500); 2 Apr 2016 19:20:25 -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 71944 invoked by uid 99); 2 Apr 2016 19:20:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2016 19:20:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 85E8D2C14FB for ; Sat, 2 Apr 2016 19:20:25 +0000 (UTC) Date: Sat, 2 Apr 2016 19:20:25 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NET-590) In FTPClient, the Login function returns "true" for an invalid login 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/NET-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223016#comment-15223016 ] Sebb commented on NET-590: -------------------------- Thanks. > In FTPClient, the Login function returns "true" for an invalid login > -------------------------------------------------------------------- > > Key: NET-590 > URL: https://issues.apache.org/jira/browse/NET-590 > Project: Commons Net > Issue Type: Bug > Components: FTP > Reporter: Nadia Kanellopoulou > > We initiate: ftp = new FTPClient(); > If you follow Exactly this workflow: > 1. Valid Connect (ftp.connect(validIP, 21)) > 2. Valid Login (boolean login = ftp.login("username", "correctPass")) > 3. Valid Change directory (boolean changed = ftp.changeWorkingDirectory(correctRemoteDirectory)) > 4. Invalid Connect (ftp.connect(invalidIP, 21)) > 5. Valid Upload (boolean uploaded = ftp.storeFile(hostDir + fileName, inputStream)) > 6. Invalid Login (boolean login = ftp.login("username", "wrongPass")) > The last action (Invalid Login) will return "true", although it should return "false" -- This message was sent by Atlassian JIRA (v6.3.4#6332)