Hi,
however I try it again to explain the bad URI re-creation of DOpus 8(+9?).
I hope one of the developers understand it:
When I create a FTP account and leave the field "Initial directory" empty, select this FTP and select FTP/View properties then a "/" will be shown as initial path which is wrong. An empty initial directory is different from using a "/"!
Let's do an example:
I have the URL "ftp://xyz.com/" and want to create an FTP connection in DOpus 8.
The FTP default path on my server is "/ftp/pub".
The FTP details:
Host: "xyz.com"
User: "user1"
Pwd: "*"
Initial directory: (empty)
So after the login the user is in "/ftp/pub/user1" on my server.
Opening Connection xyz.com:21
220 xyz.com FTP server (Version wu-2.6.2(1) Thu Jun 23 13:09:59 IDT 2005) ready.
331 Password required for user1.
230 User user1 logged in.
215 UNIX Type: L8
500 'FEAT': command not understood.
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
200 Type set to I.
257 "/ftp/pub/user1" is current directory.
200 PORT command successful.
150 Opening BINARY mode data connection for /bin/ls.
136 bytes received in 0.27 seconds (4.904 Kbytes/sec)
226 Transfer complete.
and DOpus 8 displays:
"FTP://xyz.com//ftp/pub/user1/"
and also the "Copy filenames as URL" re-creates:
"FTP://xyz.com//ftp/pub/user1/x"
which is not the same as "ftp://xyz.com/"!
The path+file from the returned <257 "/ftp/pub/user1" is current directory> should not be re-created in URL's!
When I give the URL away and the FTP default root on the server changes - the FTP does not work anymore!
There is also the issue that I can not select "Edit / Copy filenames ..." if the directory is empty and I'm not able to select a file! A "Copy filenames ..." should be possible from the title of the window - however.
Now I'll show you that "/" and the empty initial directory is not the same!
I've created the subdirectories "x" on my server:
mkdir /x
mkdir /ftp/pub/user1/x
For the URL "ftp://xyz.com/x":
Change the FTP settings to the initial directory to "x" (without slash) and try to connect again:
Opening Connection xyz.com:21
220 xyz.com FTP server (Version wu-2.6.2(1) Thu Jun 23 13:09:59 IDT 2005) ready.
331 Password required for user1.
230 User user1 logged in.
215 UNIX Type: L8
500 'FEAT': command not understood.
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
200 Type set to I.
257 "/ftp/pub/user1" is current directory.
250 CWD command successful.
257 "/ftp/pub/user1/x" is current directory.
200 PORT command successful.
150 Opening BINARY mode data connection for /bin/ls.
91 bytes received in 0.27 seconds (2.952 Kbytes/sec)
226 Transfer complete.
btw: I'm missing the log what is sent to the server ("CWD x")
The "x" works and we are in "/ftp/pub/user1/x". OK & correct!
For the URL "ftp://xyz.com//x": (2 slashes!):
Now change the FTP settings and set the initial directory to "/x" (with slash) and try to connect:
Opening Connection xyz.com:21
220 xyz.com FTP server (Version wu-2.6.2(1) Thu Jun 23 13:09:59 IDT 2005) ready.
331 Password required for user1.
230 User user1 logged in.
215 UNIX Type: L8
500 'FEAT': command not understood.
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
200 Type set to I.
257 "/ftp/pub/user1" is current directory.
550 Permission denied on server. You are restricted to your account.
257 "/ftp/pub/user1" is current directory.
200 PORT command successful.
150 Opening BINARY mode data connection for /bin/ls.
136 bytes received in 0.27 seconds (4.904 Kbytes/sec)
226 Transfer complete.
Now you see that "CWD /x" happens (no logging but you get back 550 Permission denied.
Do you see the difference if I would enter a leading "/" or nothing into the initial directory?
When I create a FTP account without an initial directory - DOpus 8+9 should give it back and do not replace it with "/" or add a leading "/"!
Directory Opus makes a relative path into a wrong absolute path!
Is now all clear and everyone knows what should be fixed and adapted?
Robert