JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-4959

FtpConnectionFactory does not properly validate connections

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2.5 (EE only)
  • Fix Version/s: 2.2.7 (EE only), 3.0.1
  • Component/s: Transport: FTP / SFTP
  • Labels:
    None
  • User impact:
    Medium
  • Similar Issues:
    None

Description

The validateObject method relies on an exception to be thrown to determine validity. The noop command can return a negative result without an exception.

FtpConnectionFactory.java:64
public boolean validateObject(Object obj)
    {
        FTPClient client = (FTPClient) obj;
        try
        {
            client.sendNoOp();
            return true;
        }
        catch (IOException e)
        {
            return false;
        }
    }

A possible fix would be to return the result of the noop command instead of returning true.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
No work has yet been logged on this issue.

People

  • Assignee:
    Dirk Olmes
    Reporter:
    Mike Cantrell
Vote (0)
Watch (2)

Dates

  • Created:
    14/Jul/10 09:35 AM
    Updated:
    13/Jan/12 08:19 AM
    Resolved:
    22/Oct/10 03:08 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.