Tcl Library Source Code

View Ticket
Login
Ticket UUID: 782367
Title: ftp.tcl: file list empty after file get
Type: Bug Version: None
Submitter: codeman1911 Created on: 2003-08-03 16:04:16
Subsystem: ftp Assigned To: gwlester
Priority: 5 Medium Severity:
Status: Open Last Modified: 2004-03-04 05:23:30
Resolution: None Closed By:
    Closed on:
Description:
when I list a dir from root, say
list /pub/linux/redhat

I get a listing as usual. If I then do:

get /pub/linux/redhat/readme.txt

I get readme.txt , ok.

If I now do :

list /pub/linux/mandrake

I get an empty dirlisting. If I do :

list /pub/linux/mandrake

I get the dirlisting with twice the contents .....
pub is a symbolic link in root.

If I do list, get, cd, list I get a normal listing.
This problem occurs with different ftp daemons.
User Comments: andreas_kupries added on 2003-10-22 04:37:49:
Logged In: YES 
user_id=75003

I see now difference between the first 'list' which returns an 
empty list, and the second one returning a list with twice the 
contents. The text around them seems to imply that they are 
different command. Or do you wish to say that the second 
command is identical, but behaves different nonetheless ?

Could this be a buffering issue ? The result from the first 
command somehow stored internally and returned together 
with the result of the next command ?

What happens when verbose logging is activated ? (From the 
docs: The output of the package is controlled by two state 
variables, ::ftp::VERBOSE and ::ftp::DEBUG. 
Setting ::ftp::VERBOSE to "1" forces the package to show all 
responses from a remote server. The default value is "0". 
Setting ::ftp::DEBUG to "1" enables debugging and forces the 
package to show all return codes, states, state changes 
and "real" ftp commands. The default value is "0".)

This could tell us more about the data actually going to and 
coming from the ftp server.