Groups | Blog | Home
all groups > iis ftp > november 2007 >

iis ftp : Directory Listing Failure (sometimes)


Peter Elbertse
11/19/2007 8:05:04 AM
Hello,

I've got a very strange problem with IIS6.0 FTP Service. I've setup the
Metabase to set a specific portrange for PASV. This all works as intended.

However, I now run into a strange problem where I'm not able to browse a
particular folder when it included a particular file.

If I remove, move or rename the file, directory listing works. If I create a
new file with that filename (in this case filedownload.aspx) it doesn't work
either. It seems I only run into this issue with PASV connections. The name
of the folder the file is in is called 'administration'.

Has anyone else ever ran into such issues / knows how to resolve this
Peter Elbertse
11/21/2007 1:37:01 AM
I've seen it happen before on one different occasion. In that case we could
remove the file; but in this case we cant and the client doesnt want to
update their code (which I do understand).

It's not a public server, unfortunatly; but I did manage to create a new
Windows User account with just listing permissions, so you should be able to
"see" what's going wrong. Could you please send me an email, so I can send to
the test credentials?

[quoted text, click to view]
Peter Elbertse
11/21/2007 5:29:03 AM
Might be usefull to know, for example with LeechFTP, it allways seems to
"hang" at "Retrieving dir list: 2.795 bytes"..

Might it have to do with network settings as MTU-sizes maybe?

[quoted text, click to view]
Bernard Cheah [MVP]
11/21/2007 12:34:10 PM
Weird... only somtimes ?
and I have yet to see a file/folder name that relate to this.

is this public? test url ?

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Peter Elbertse
11/23/2007 7:53:01 AM
Hi Bernard,

The issue has been resolved. I allmost daren't say.. but it seems that the
Windows Firewall was enabled on the machine (*shame*). Still I'd weird and I
cant see any logic in this, but the issue is gone. Since the machine is
behind a normal switch (and no firewall), I've enabled Routing and RAS
instead (and set this up accordingly).

I don't know if the issue is reproducable, but if it is, then it's a simple
few steps:
- Enable the Windows Firewall/ICS Service
- Create the required firewall rules; if required, dunno
- Install IIS and FTP
- No do yet put in the PassivePortRange in the MetaBase
- Create a folder named 'administration'
- Create a file in this folder called 'filedownload.aspx'
- Create a Windows Account, name it TestAccount
- Create a Virtual Folder within the FTP, with the names TestAccount (the
same name as the Windows account) and point that to the 'administation'
folder, or it's root.
- Try to connect through FTP/PASV and login with TestAccount

Once you want to list the directory 'administration' this issue should show
itself; that is, if it's reproducable.

[quoted text, click to view]
Bernard Cheah [MVP]
11/23/2007 10:05:58 AM
If you rename it then it works? if you are 100% sure that you can reproduce
and this is a bug, ring up Microsoft support and they will fix it for free.

I will be traveling for the next two weeks, so you can skip the email.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Bernard Cheah [MVP]
11/23/2007 10:07:21 AM
well it could be, but the default one should work just fine.
also if you access via active mode say ftp.exe - can you download the file
or view the folder listing?
--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button