WebDAV plugin bugs/missing functionality
Moderators: Hacker, petermad, Stefan2, white
Filesize of remote file is always zero (https, Proxy)
When I connect to a WebDAV Server over a proxy with https the filesize in total commander is always displayed as zero bytes. If I download the remote files the filesize of the downloaded file is the right one (not zero). So the filesize is only wrong in the pane where the remote files on the webDAV server are shown.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Are you sure that you use TC's WebDAV and not the Web folders from Windows?
If you are sure, turn on detailed logging and then connect to a site. Then look in your TEMP folder. There should be a file named DAV*.TMP with the raw directory listing. It should contain size lines for each file similar to this:
Are these present or not?
If you are sure, turn on detailed logging and then connect to a site. Then look in your TEMP folder. There should be a file named DAV*.TMP with the raw directory listing. It should contain size lines for each file similar to this:
Code: Select all
<lp0:getcontentlength>69574</lp0:getcontentlength>
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thanks first for the quick answer.
I'm using TC's WebDAV. I've already turned on detailled logging so that should be enough evidence that I'm really using it.
However I cannot find the files you've written about in your message. What temp directory does TC usually use under Windows XP SP2? Should it be under "Documents and Settings\[username]\local settings\temp"? There's nothing on my machine. I couln't find the file on other locations either. I would appreciate if you could give me a hint where these files may be located.
I'm using TC's WebDAV. I've already turned on detailled logging so that should be enough evidence that I'm really using it.
However I cannot find the files you've written about in your message. What temp directory does TC usually use under Windows XP SP2? Should it be under "Documents and Settings\[username]\local settings\temp"? There's nothing on my machine. I couln't find the file on other locations either. I would appreciate if you could give me a hint where these files may be located.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Please choose "Run DOS" from the menu and type the command
set
and press ENTER. It should show you the location where the TEMP variable points.
set
and press ENTER. It should show you the location where the TEMP variable points.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Ok. I finally found the log file. I don't know for sure why it wasn't there yesterday, but ok...
In the logfile there's no size lines similar to what you posted, but there's a 404 not found error in each reponse entry. I post one of these response entries below:
In the logfile there's no size lines similar to what you posted, but there's a 404 not found error in each reponse entry. I post one of these response entries below:
Code: Select all
<D:response> <D:href>/webfolders/MOVE%20IT/JRules/60_Meetings/WorkshopCoventry/Company%20Process%20Framework/CORSO%20Development%20Baseline/CORSO.CPF.DevBaselinev2.ppt</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hmm, that's not a directory listing, it seems that you tried to open a file (CORSO.CPF.DevBaselinev2.ppt) as a directory. Can you send me such a file for a directory too, please?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
So here's the logfile with a complete directory listing containing both files and directories:
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/</D:href>
<D:propstat>
<D:prop>
<D:displayname>Training and User Guides</D:displayname>
<D:resourcetype><D:collection/></D:resourcetype>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/Pictures/</D:href>
<D:propstat>
<D:prop>
<D:displayname>Pictures</D:displayname>
<D:resourcetype><D:collection/></D:resourcetype>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/NetDocuments%20Guide%20-%20Advanced.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/NetDocuments%20Guide%20-%20Basic.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/Automatic%20Login.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/OpenDocumentById.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/DocumentNames.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/compass.stds.DocumentMgmtStandards.doc</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/webfolders/NetDocuments%20Support/Training%20and%20User%20Guides/Netdoc.Presentation.20050819.ppt</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
As you can see, there are no file details reported for the files. I guess that the server process doesn't have the list attributes rights for these files, that's why it's reporting all these 404 not found errors.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I have no idea what the Explorer is doing differently. Maybe you can find out with a tool like Ethereal (now Wireshark).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Sorry. I couldn't do anything concerning this case in the last time because I was too busy.
Finally I've got wireshark dumps of the webdav plugin in TC and Windows Explorer. Since I couldn't watch the connection for which I opened this case because it's https I used another connection to an internal server.
So the difference between the TC plugin and windows explorer is that the windows explorer sends every request twice. The first time in a short form and the second time in a long form. I would like to post the both protocols here, but when I try to do so the forum just shows me the start page and does nothing. Seems like it doesn't like some of the captured data. Would you like me to send it to you via email?
Finally I've got wireshark dumps of the webdav plugin in TC and Windows Explorer. Since I couldn't watch the connection for which I opened this case because it's https I used another connection to an internal server.
So the difference between the TC plugin and windows explorer is that the windows explorer sends every request twice. The first time in a short form and the second time in a long form. I would like to post the both protocols here, but when I try to do so the forum just shows me the start page and does nothing. Seems like it doesn't like some of the captured data. Would you like me to send it to you via email?
I forgot one thing in the above post:
I could see, that on my internal server (http AND https) the TC plugin worked correctly and displayed the file size. So it shouldn't be a general webDAV over https problem but a problem specific to some server settings. Or maybe the proxy is the problem. I know, that netdrive (a tool from novell to map webDAV ressources as windows drives) can't handle webDAV with https and a proxy server. But I cannot imagine why this could be a problem...
I could see, that on my internal server (http AND https) the TC plugin worked correctly and displayed the file size. So it shouldn't be a general webDAV over https problem but a problem specific to some server settings. Or maybe the proxy is the problem. I know, that netdrive (a tool from novell to map webDAV ressources as windows drives) can't handle webDAV with https and a proxy server. But I cannot imagine why this could be a problem...
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2ThomasKon
I guess that the mod_security module of the Web server is blocking out some words, which will cause the post to fail.
Could you send me the two logs by e-mail (zipped), please?
I guess that the mod_security module of the Web server is blocking out some words, which will cause the post to fail.
Could you send me the two logs by e-mail (zipped), please?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com