#477 FTP ConnectionInfo equals() method incorrect (w/ fix)

closed
nobody
None
5
2005-07-11
2005-06-30
Ed King
No

The "equals()" method of the ConnectionInfo class in
ConnectionManager.java of the FTP plugin is incorrect.
It compares the password of the first object to the
private key of the second object. As a result,
connections are never equal, which causes the FtpVFS to
keep establishing new connections.

The diff against the 4.2final:

214c214
<
c.password.equals(privateKey)))
---
>
c.password.equals(password)))

Can someone please check this change in?

Thank you!

-Ed

Discussion

  • Nicholas O'Leary

    Logged In: YES
    user_id=631957

    Thanks for spotting that. I have checked in the fix, and
    will do a new release of the plugin for the next batch.

     
  • Nicholas O'Leary

    • status: open --> closed
     

Log in to post a comment.