Project

General

Profile

Bug #385

Net::FTP#login raises TypeErrors

Added by Anonymous about 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:18058]

Description

=begin
Net::FTP#login raises TypeError when one of the passed arguments (user, password or account) is nil.
This happens when only passing a user, but a password is requested by the Server.
=end


Files

ftp.rb.diff (471 Bytes) ftp.rb.diff shugo (Shugo Maeda), 08/05/2008 04:54 PM

History

#1

Updated by shugo (Shugo Maeda) about 11 years ago

  • Assignee set to shugo (Shugo Maeda)

=begin

=end

#2

Updated by shugo (Shugo Maeda) about 11 years ago

=begin
Is the attached patch sufficient?

This patch raises FTPReplyError in such a situation.
=end

#3

Updated by NoKarma (Arthur Schreiber) about 11 years ago

=begin
Yes, that patch seems to be fine.
=end

#4

Updated by shugo (Shugo Maeda) about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18417.
=end

Also available in: Atom PDF