Bug 306191
Summary: | FTP client does not restore binary mode after DIR command | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Thomas L. Shinnick <tshinnic> |
Component: | ftp | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ftp-0.17-44.fc9 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-12-12 10:05:03 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Thomas L. Shinnick
2007-09-25 22:36:06 UTC
An associate remarked that the FTP client "couldn't know the TYPE I was needed as you used the QUOTE command". That reminded me to add a trace showing what would happen when the client 'knew' it needed to reinstate the "TYPE I". 230 Access granted to Budgie user testthis ---> SYST 215 UNIX Type: L8 Remote system type is UNIX. Using binary mode to transfer files. ftp> binary ---> TYPE I 200 Type set to I ftp> dir ---> TYPE A 200 Type set to A ftp: setsockopt (ignored): Permission denied ---> PASV 227 Entering Passive Mode (192,168,130,129,194,7). ---> LIST 150 Opening ASCII mode data connection for file list drwxrws--- 2 budgftp budgftp 4096 Sep 24 12:28 download -rwx------ 1 budgftp budgftp 69 Jul 8 16:20 testfile1 drwxrws--- 3 budgftp budgftp 4096 Sep 25 18:36 upload 226 Transfer complete ftp> quote size testfile1 ---> size testfile1 550 SIZE not allowed in ASCII mode ftp> get testfile1 local: testfile1 remote: testfile1 ---> TYPE I 200 Type set to I ftp: setsockopt (ignored): Permission denied ---> PASV 227 Entering Passive Mode (192,168,130,129,163,160). ---> RETR testfile1 150 Opening BINARY mode data connection for testfile1 (69 bytes) 226 Transfer complete 69 bytes received in 0.0262 secs (2.6 Kbytes/sec) ftp> quote size testfile1 ---> size testfile1 213 69 Note the "TYPE I" before the file transfer is started. The client 'knows' it needs to do this again, having previously undone it. It didn't 'know' it needed to do this before the 'QUOTE'd command. My opinion is it shouldn't be guessing 'when' at all. Do you have some preferable solution? I can simply switch on TYPE_I in quote command. Fixed in rawhide. |