Ftp Server/Protocol Help



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.

.



Relevant Pages

  • RE: Fax monitor incoming + outgoing calls?
    ... The detail steps to install share fax client as follows: ... Start server management console, locate Client Computers node, click ... To the folder redirection GPO issue: ... How to stop Folder Redirection in Windows Server 2003 and in Windows 2000 ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 "My Documents" redirection failure
    ... Ask all computers to redirect the folder ... Run gpupdate on the server and clients. ... Logoff and logon the users on the client computers. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot logoff RWW
    ... the same folder, open a cmd prompt navigate to that folder and run the ... I have used RWW successfully before on this server. ... when the virus is active/activating the client security is triggered into ...
    (microsoft.public.windows.server.sbs)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • Re: Ftp Server/Protocol Help
    ... I doubt ftp server will instructs client to ... Client: CWD / ... find the rest of the files it does do a CWD to the folder above it, ...
    (microsoft.public.inetserver.iis.ftp)

Loading