Virtual Folders DIR bug (wodFTPServer)

by chris @, (6754 days ago)

For a test of virtual folders I added the following during login process:

DIRFORMAT = WINDOWS

user.VirtualFolders.Add / , DRIVERS , C:DRIVERS
user.VirtualFolders.Add / , BACKUP , C:BACKUP

Once logged in I enter DIR and see:

<DATE> <TIME> <DIR> TEST1 -----> test folder
<DATE> <TIME> <DIR> DRIVERS -----> Virtual folder

Now I type DIR DRIVERS and I get the contents of DRIVERS folder:

<DATE> <TIME> <DIR> SETUP -----> Driver setup folder
<DATE> <TIME> <DIR> DRIVERS -----> Virtual folder

Now, this DRIVERS virtual folder should not be in the destination link as I have not defined it to be there. If I CD DRIVERS folder and do DIR then virtual folder is not there and this is correct.

Looks like bug exists when you DIR a virtual folder.


locked

Re: Virtual Folders DIR bug

by wodDamir @, (6754 days ago) @ chris

Hi Chris,

I've just tried this and it seems to work like a charm on my side. I
tried to create create two virtual Folders like you described, and then tried to access both of them, and the actual Directory contents were shown. If i set VirtualFolder to a path that doesn't exist on my Computer, i get an error saying No such File or Directory .

Perhaps i am doing something wrong, or maybe the Drivers directory is really there?? What version of wodFtpServer are you using?

Regards,
Damba

locked

Re: Virtual Folders DIR bug

by Chris, (6754 days ago) @ wodDamir

Version of FTPD is 2.2.2.128

I have just tried with sample 1. The smallest FTP server

Add the following:

In form_load I have added:

MKDIR C:DRIVER
MKDIR C:BACKUP
MKDIR C:ROOT

In FTPD_LoginPassword.....

user.HomeDir = C:
oot
User.VirtualFolders.Add / , DRIVER , C:DRIVER
User.VirtualFolders.Add / , BACKUP , C:BACKUP

Now run sample and start.

You should have 3 new folders on C: drive. Root for user folder, driver and backup for examples.

From DOS prompt, login to server:

FTP 127.0.0.1

User: ANY
Pass: ANY

DIR

drwxr-xr-x 1 root root 0 nov 8 15:35 .
drwxr-xr-x 1 root root 0 nov 8 15:35 ..
drwxr-xr-x 1 root root 0 nov 8 15:35 DRIVER
drwxr-xr-x 1 root root 0 nov 8 15:35 BACKUP

Now lets look in the empty DRIVER folder:

DIR DRIVER

drwxr-xr-x 1 root root 0 nov 8 15:35 .
drwxr-xr-x 1 root root 0 nov 8 15:35 ..
drwxr-xr-x 1 root root 0 nov 8 15:35 DRIVER
drwxr-xr-x 1 root root 0 nov 8 15:35 BACKUP

No what I was expecting to see in this folder as it should be empty.

Chris

locked

Re: Virtual Folders DIR bug

by wodDrazen @, (6754 days ago) @ Chris

Hi Chris,


We have duplicated your problem.
We will answer you soon as we find some solution.


Regards,
Drazen

locked

Re: Virtual Folders DIR bug

by wodDrazen @, (6754 days ago) @ wodDrazen

Hi Chris,


Your problem should be fixed. Please download latest version of wodFTPServer.
Version Property should return to you 2.2.4.132.
Let us know how it goes.


Regards,
Drazen

locked

Re: Virtual Folders DIR bug

by chris, (6754 days ago) @ wodDrazen

Problem now fixed, thanks for your quick response.

locked