Cyberduck Mountain Duck CLI

#8340 closed defect (thirdparty)

Truncated .shtml files when downloaded

Reported by: kaleo Owned by: dkocher
Priority: high Milestone:
Component: webdav Version: 4.5.2
Severity: critical Keywords:
Cc: Architecture:
Platform: Windows 7

Description (last modified by kaleo)

Is any one else having the issue, when downloading .shtml index files via web dav? Once downloaded the index.shtml file is being truncated, meaning certain lines of code within the file is missing, mostly code pertaining to SSI. We've seen this issue on the following platforms, Mac OS 10.5 -10.10 and Windows XP and 7.

Attachments (2)

Change History (11)

comment:1 Changed on Nov 18, 2014 at 10:37:51 PM by kaleo

  • Description modified (diff)

comment:2 follow-up: Changed on Nov 19, 2014 at 11:32:12 AM by dkocher

The server is most possibly sending a wrong Content-Length header. Please post the transcript from the log drawer (⌘-L) of the Transfers window.

comment:3 Changed on Nov 19, 2014 at 11:32:23 AM by dkocher

  • Component changed from core to webdav
  • Owner set to dkocher

comment:4 Changed on Nov 19, 2014 at 11:32:45 AM by dkocher

  • Summary changed from .shtml files are truncated when downloaded via web dav to Truncated .shtml files when downloaded

comment:5 in reply to: ↑ 2 Changed on Nov 19, 2014 at 3:50:57 PM by kaleo

Replying to dkocher:

The server is most possibly sending a wrong Content-Length header. Please post the transcript from the log drawer (⌘-L) of the Transfers window.

HEAD /20.web.dav.10/governingboard/ HTTP/1.1 Host: www.chaffey.edu Connection: Keep-Alive User-Agent: Cyberduck/4.5.2 (Mac OS X/10.9.5) (x86_64) HTTP/1.1 200 OK Content-Length: 16835 Content-Type: text/html Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/8.5 Date: Wed, 19 Nov 2014 15:36:23 GMT PROPFIND /20.web.dav.10/governingboard/ HTTP/1.1 Depth: 1 Content-Type: text/xml; charset=utf-8 Content-Length: 99 Host: www.chaffey.edu Connection: Keep-Alive User-Agent: Cyberduck/4.5.2 (Mac OS X/10.9.5) (x86_64) HTTP/1.1 207 Multi Status Content-Type: text/xml Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/8.5 Date: Wed, 19 Nov 2014 15:36:23 GMT Content-Length: 49473 PROPFIND /20.web.dav.10/governingboard/index.shtml HTTP/1.1 Depth: 1 Content-Type: text/xml; charset=utf-8 Content-Length: 99 Host: www.chaffey.edu Connection: Keep-Alive User-Agent: Cyberduck/4.5.2 (Mac OS X/10.9.5) (x86_64) HTTP/1.1 207 Multi Status Content-Type: text/xml Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/8.5 Date: Wed, 19 Nov 2014 15:36:24 GMT Content-Length: 614

Version 0, edited on Nov 19, 2014 at 3:50:57 PM by kaleo (next)

comment:6 Changed on Nov 19, 2014 at 3:53:59 PM by kaleo

Basically if we download the .shtml file from the server directly via mapping or via a share, the file downloads correctly, but if we download the the same file via cyberduck web dav the file size is exactly the same but lines of code are missing.

comment:7 Changed on Nov 20, 2014 at 10:43:45 AM by dkocher

Can you make sure you post the transcript from the Transfers window. I do not see the GET request in the log you posted.

comment:8 Changed on Nov 20, 2014 at 10:49:34 AM by dkocher

  • Resolution set to thirdparty
  • Status changed from new to closed

I suspect this to be a server issue. The files differ at the point where there is an server side include <!--#include file="nav.shtml" --> in the file. I suppose the server renders this document instead of returning the RAW file.

comment:9 Changed on Nov 20, 2014 at 10:50:22 AM by dkocher

            <table width="174" border="0" cellspacing="0" cellpadding="0">
              <tr class="helv10n">
                <td align="left" valign="top" width="18"><br /></td>
                <td width="156" align="left" valign="top" class="helv12b"><script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

            <table width="174" border="0" cellspacing="0" cellpadding="0">
              <tr class="helv10n">
                <td align="left" valign="top" width="18"><br /></td>
                <td width="156" align="left" valign="top" class="helv12b"><!--#include file="nav.shtml" -->
                  <br /></td>
              </tr>
            </table>
            <br /></td>
          <td width="18" align="left" valign="top" bgcolor="#FFFFFF" class="helv10n"><br /></td>

Note: See TracTickets for help on using tickets.