[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error
From: carl:cybercraft at: 24-Dec-2003 22:47
On 15-Nov-03, Brett Handley wrote:
> Hi Carl,
>> I tried them and ftp worked with no problems on the two sites I've
>> talked about till now.
>> But I have access to one other server, so yesterday I thought I'd
>> try
>> it with your parse-dir-list fix - but imediately noticed access
>> via
>> REBOL's FTP wasn't returning all the file-names in the first
>> directory I looked at! This is nothing to do with your code, as it
>> happens with REBOL's original code. There's 24 files and
>> directories
>> in the directory when I look at it with my FTP client, but REBOL
>> only
>> returns 10 of them. Anyone heard of this problem before?
> Eeek! As Romano pointed out - parse rules. But I'm not so happy that
> there is no error generated.
> Carl can you try this on the server with the above problem - all it
> does is poke in NET-LOG tracing statements to emit the results from
> LIST and NLST (file-list really). If the info returned by LIST or
> NLST is not sensitive it would good to see it (permissions/names
> changd for safety if necessary) and/or perhaps you could send it
> "off-list".
> http://www.codeconscious.com/ftp-testing/patch-ftp-list-logging.r
Okay - got it now.
Running it output...
Inserted NET-LOG for received NLST results.
and reading the directory from that site returned...
URL Parse: -user- -password- -url- none web/ none
Net-log: ["Opening" "tcp" "for" "FTP"]
Net-log: [
none ["220" "230"]]
Net-log: {220 ProFTPD 1.2.5 Server (ProFTPD) [217.206.220.106]}
Net-log: [
["USER" port/user] "331"]
Net-log: "331 Password required for -user-."
Net-log: [
["PASS" port/pass] "230"]
Net-log: {230-****************** Site Administrator FTP instructions
******************}
Net-log: " "
Net-log: { PLEASE ensure that you are in the /web directory before
uploading files}
Net-log: { to be viewable from the web server root directory.}
Net-log: " "
Net-log: { There is also a user area (which you may be in now) which
will allow you}
Net-log: { to test uploaded files at
http://<your.site.domain>/~/-user- before}
Net-log: " uploading them to the /web directory."
Net-log: " "
Net-log: { If you are having problems viewing the /web area then try
setting passive }
Net-log: " mode in your ftp client."
Net-log: " "
Net-log: {
*************************************************************************}
Net-log: " "
Net-log: "230 User -user- logged in."
Net-log: [
"SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: [
["PORT" port/locals/active-check] "200"]
Net-log: "200 PORT command successful."
Net-log: [
["CWD" either empty? port/path ["./"] [join "./" port/path]]
250
]
Net-log: "250 CWD command successful."
Net-log: [
["TYPE A"] ["200"]]
Net-log: "200 Type set to A."
Net-log: [
["LIST"] ["150" "125"]]
Net-log: {150 Opening ASCII mode data connection for file list.}
Net-log: [
none "226"]
Net-log: "226 Transfer complete."
== [-10 files instead of 24-]
Turning on passive mode (ie...
system/schemes/ftp/passive: true
) makes no difference - it still returning just the 10 files.
This any help? ...
--
Carl Read