| 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: | Closed | Last Modified: | 2026-11-21 12:27:58 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-11-21 12:27:58 | |||
| 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: |
serhiy.storchaka added on 2026-11-21 12:27:58:
Reproduced with ftp 2.4 to 2.4.12 against a server whose active data connection arrives after its 226 reply: the List returned empty, the following Get received the listing, and the next List received the file contents, so each transfer got the data of the previous command. [863ac2e0d8] (ftp 2.4.13, tcllib 1.17, ticket [eb0b15d598]) makes the client wait for the data connection, and the same sequence now returns correct results. 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. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki