92Views2Replies

Author Options:

Broken chunk encoding on PDF Answered

I am a developer for Sophos (http://sophos.com), and I'm investigating an issue reported by a mutual customer regarding PDF files downloaded from your site.

Our Mac anti-virus product includes a web filtering component.  This will scan downloaded files and other content before the browser sees it, but in order to do this it must cache the content until the file download is finished.  The pcap file provided to us by the customer suggests that your chunk encoding implementation is missing the '0\r\n\r\n' termination element, and so can never be regarded as complete.

Also, the pcap capture indicates that your chunk encoding implementation puts each byte of the PDF file into its own chunk.  While this is technically a correct usage of chunk encoding, it results in a six-fold increase in download size.  I'd speculate that the single-byte chunk size is simply another symptom of the same issue which omits the terminator.

I'd be very happy to speak to one of your developers to discuss these issues further.

Discussions

0
None
litanyww

4 years ago

Since Instructables have yet to acknowledge this thread/issue, I've had to ask our customer to provide a complete network dump (I do not have access to an account I can use to observe the PDF download directly).

This clearly shows that the PDF stream is not correctly terminated. I would certainly expect this to cause issues even when anti-virus products are not in play, and indeed many such PDF download issues have been reported in this forum.

Again, I would be very happy to discuss this issue with an Instructables developer.

0
None
litanyww

4 years ago

When I say "I'd be very happy to", I suppose I actually mean "I really need to".

Is there another mechanism I should be using to contact Instructables?