Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1763707
Title: ::ftp::Get returns "" in mode inline + error
Type: Bug Version: None
Submitter: nobody Created on: 2007-07-30 15:11:37
Subsystem: ftp Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2007-07-30 15:11:37
Resolution: None Closed By:
    Closed on:
Description:
contrary to the man-page ::ftp::Get returns the empty string when in mode $ftp(inline) and an error occurs.

-------------------------------------
% packa requi ftp
2.4.8
% set conn [ftp::Open localhost  user pass]
0
% set erg [ftp::Get $conn not_existing_file -variable var]
error     error | E: Error retrieving file "not_existing_file"!:
error     invalid command name "ftp::Open"
error         while executing
error     "ftp::Open localhost  user pass"
% puts $erg

%
------------------------------------
This is 7 line before the end of ftp::Get 

2 lines after that:
CloseDataConn $s is only called if $ftp(inline) is false.
Is this correct?

In the normal configuration I am unable to retrieve the info about the error. Am I suppost to redefine the DisplayMsg for this?

thanks for your efforts
Albrecht Mucha MediTec GmbH
a.mucha at mdtec . de