Ftp Server/Protocol Help
- From: Andrew Smith <Andrew Smith@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Apr 2008 12:21:01 -0700
I'm having an issue with an FTP server that i'm developing. The problem i am
having is the the windows explorer ftp client is changing directories
improperly. i did the same activies with another ftp server and the windows
explorer ftp client respond as it should. i've been following the RFC 959.
but maybe i'm not doing something right here.
The problem occurs when the client is downloading multiple directories, it
will list the current directory and keep entering the first directory it
finds in then list that one. until it reaches a point when there are no more
directories to enter, then it will CWD to the directory above and enter the
other directories that it hasn't been to yet, and then it'll just keeping
going down until it can't anymore and work its way throught the directory
structors in that manner. The problem that it does with my ftp server is that
when it first starts the processes it will start going down the directories
first, but once it reaches a point to where it needs to go up a directory to
find the rest of the files it does do a CWD to the folder above it, it will
send a CWD / (the root) twice in a row????
here is a log of whats it does exactly, I have setup 3 folders, titled
folder1, folder2, and subfolder, each of the have a single file in them named
"file in folder <foldernamehere>.txt", (exmple: for the folder1 directory,
the file is called "file in folder1.txt") the sub folder directory is a sub
folder of the folder1. These three folders live in a directory called "Test
Folder" which lives on my desktop. the logs here shows an attempt to download
the "Test Folder".
Accept Callback Ran
Server: 220 Ftp Server Ready
Client: USER testUser
Server: 331 password for merkaba please...
Client: PASS testPassword
Server: 230 user testUser login successful.
Client: opts utf8 on
Server: 501 Option Not Supported.
Client: syst
Server: 215 Win32NT
Client: site help
Server: 500 Unknown Command.
Client: PWD
Server: 200 /
Client: TYPE A
Server: 200 Type set to A.
Client: PASV
Server: 227 Entering Passive Mode (127,0,0,1,35,54)
Client: LIST
Server: 150 Opening Data Connection
Server: drwxr--r-- 1 owner group 0 Apr 02 14:34 desk
Server: 226 Transfer Complete
Client: noop
Server: 200 NOOP Command Successful
Client: CWD /desk/
Server: 250 CWD Completed, Current Directory "/desk/"
<client does a list on the desktop items, it inclueds the "Test Folder" as a
directory>
Client: PWD
Server: 200 /desk/
Client: CWD Test Folder
Server: 250 CWD Completed, Current Directory "/desk/Test Folder"
Client: TYPE A
Server: 200 Type set to A.
Client: PASV
Server: 227 Entering Passive Mode (127,0,0,1,29,137)
Client: LIST
Server: 150 Opening Data Connection
Server: d---r--r-- 1 owner group 0 Apr 02 14:45 Folder 1
Server: d---r--r-- 1 owner group 0 Apr 02 14:27 Folder 2
Server: 226 Transfer Complete
Client: PWD
Server: 200 /desk/Test Folder
Client: CWD Folder 1
Server: 250 CWD Completed, Current Directory "/desk/Test Folder/Folder 1"
Client: TYPE A
Server: 200 Type set to A.
Client: PASV
Server: 227 Entering Passive Mode (127,0,0,1,29,197)
Client: LIST
Server: 150 Opening Data Connection
Server: ----r--r-- 1 owner group 61 Apr 02 11:26 File In
Folder1.txt
Server: d---r--r-- 1 owner group 0 Apr 02 14:51 SubFolder
Server: 226 Transfer Complete
Client: PWD
Server: 200 /desk/Test Folder/Folder 1
Client: CWD SubFolder
Server: 250 CWD Completed, Current Directory "/desk/Test Folder/Folder
1/SubFolder"
Client: TYPE A
Server: 200 Type set to A.
Client: PASV
Server: 227 Entering Passive Mode (127,0,0,1,32,184)
Client: LIST
Server: 150 Opening Data Connection
Server: ----r--r-- 1 owner group 60 Apr 02 11:08 File In
SubFolder.txt
Server: 226 Transfer Complete
// HERE IS WHERE THIS MESSES UP AT, i USED NETMON TO SEE WHAT IT DOES
NORMALLY (NOT ON MY FTP SERVER)
// normall it will do the following 2 cwd in a row.
// Client: CWD /Desktop/Folder/Folder 1/
// OtherServer: Change directory ok
// Client: CWD /Desktop/Folder/
// OtherServer: Change directory ok
//but instead it just does a cwd to the root twice in a row ?
Client: CWD /
Server: 250 CWD Completed, Current Directory "/"
Client: CWD /
Server: 250 CWD Completed, Current Directory "/"
Client: PWD
Server: 200 /
Client: CWD Folder 2
Server: 550 The system cannot find the file specified.
.
- Follow-Ups:
- RE: Ftp Server/Protocol Help
- From: Andrew Smith
- Re: Ftp Server/Protocol Help
- From: Bernard Cheah [MVP]
- RE: Ftp Server/Protocol Help
- Prev by Date: Re: allowing website owners to log into their site to upload
- Next by Date: Re: Ftp Server/Protocol Help
- Previous by thread: allowing website owners to log into their site to upload
- Next by thread: Re: Ftp Server/Protocol Help
- Index(es):
Relevant Pages
|
Loading