Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-590

In FTPClient, the Login function returns "true" for an invalid login

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4
    • None
    • FTP
    • None

    Description

      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"

      Attachments

        Activity

          People

            Unassigned Unassigned
            nadia Nadia Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: