Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated .shtml files when downloaded #8340

Closed
cyberduck opened this issue Nov 18, 2014 · 6 comments
Closed

Truncated .shtml files when downloaded #8340

cyberduck opened this issue Nov 18, 2014 · 6 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Nov 18, 2014

4cf22a7 created the issue

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

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 19, 2014

@dkocher commented

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

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 19, 2014

4cf22a7 commented

Replying to [comment:2 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.

Here you go.....windows and mac

HEAD /20.web.dav.10/governingboard/ HTTP/1.1
Host: www.chaffey.edu
Connection: Keep-Alive
User-Agent: Cyberduck/4.5.2 (15058) (Windows 7/6.1) (x86)
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:31:15 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 (15058) (Windows 7/6.1) (x86)
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:31:36 GMT
Content-Length: 49473

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

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 19, 2014

4cf22a7 commented

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.

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 20, 2014

@dkocher commented

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

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 20, 2014

@dkocher commented

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.

Loading

@cyberduck cyberduck closed this Nov 20, 2014
@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Nov 20, 2014

@dkocher commented

            <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>

Loading

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants