unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ryan <rct@thompsonclan.org>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: 15905@debbugs.gnu.org
Subject: bug#15905: 24.3; url-copy-file sometimes silently downloads garbage or incomplete file
Date: Mon, 18 Nov 2013 12:30:49 -0800	[thread overview]
Message-ID: <528A78F9.1070903@thompsonclan.org> (raw)
In-Reply-To: <528A6FF0.1070302@thompsonclan.org>

On Mon Nov 18 11:52:16 2013, Ryan C. Thompson wrote:
> On Mon 18 Nov 2013 11:13:18 AM PST, Ted Zlatanov wrote:
>> On Sat, 16 Nov 2013 20:53:41 -0800 Ryan <rct@thompsonclan.org> wrote:
>>
>> R> On Sat Nov 16 15:27:18 2013, Ted Zlatanov wrote:
>>>> On Fri, 15 Nov 2013 08:13:13 -0800 Ryan <rct@thompsonclan.org> wrote:
>>>>
>> R> In my experience, somewhere around 10% to 20% of the time the
>> R> downloaded file has some kind of anomaly. Anomalies that I have
>> R> observed so far include:
>>>>
>> R> - the file is not completely retrieved;
>>>>
>> R> - the file is complete, but has the following text appended:
>>>>
>>>>>> 0
>>>>>>
>>>>>> - Peer has closed the GnuTLS connection
>>>>
>> R> - the file contains only an HTTP header and nothing else:
>>>>
>>>>>> HTTP/1.1 200 OK
>>>>>> Server: GitHub.com
>>>>>> Date: Thu, 14 Nov 2013 20:54:41 GMT
>>>>>> Content-Type: text/plain; charset=utf-8
>>>>>> Transfer-Encoding: chunked
>>>>>> Status: 200 OK
>>>>>> Strict-Transport-Security: max-age=31536000
>>>>>> X-XSS-Protection: 1; mode=block
>>>>>> X-Content-Type-Options: nosniff
>>>>>> X-UA-Compatible: chrome=1
>>>>>> Access-Control-Allow-Origin: https://render.github.com
>>>>
>> R> In all cases, "url-copy-file" returns t as if the retrieval was
>> R> completely successful, so the only way to detect these anomalies
>> is to
>> R> inspect the file's content.
>>>>
>>>> It's hard to tell from the bug report; can you tell us if your
>>>> Emacs is
>>>> compiled with the GnuTLS library?  (the output of `configure' would
>>>> help, or tell us where you got the binary).
>>
>> R> I believe I got my Emacs from http://emacsformacosx.com/. I don't
>> know
>> R> the configuration details of it.
>>
>> That build doesn't have GnuTLS support, so you're running an external
>> binary (`gnutls-cli' or something similar).  I haven't seen the problems
>> you report on Mac OS X (tried with the emacsformacosx build), so it may
>> be something specific to your system.  Can you see if any other users of
>> the emacsformacosx build can confirm the bug?
>>
>> Ted
>
> So, I just ran my own test case on my work machine (Ubuntu 13.04,
> Emacs 24.2.1 lucid build from Ubuntu repos), and I did not see the
> issue. I'm going to try compiling Emacs with gnutls support on my OSX
> machine to see if that makes any difference.

I ran my test case with Emacs built from Macports, which compiles Emacs 
with GnuTLS support. On this Emacs, the test did not trigger the bug. I 
think we can say that the bug manifests when using an external 
gnutls-cli or similar.





  reply	other threads:[~2013-11-18 20:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 16:13 bug#15905: 24.3; url-copy-file sometimes silently downloads garbage or incomplete file Ryan
2013-11-16 23:27 ` Ted Zlatanov
2013-11-17  4:53   ` Ryan
2013-11-18 19:13     ` Ted Zlatanov
2013-11-18 19:52       ` Ryan C. Thompson
2013-11-18 20:30         ` Ryan [this message]
2013-11-21 16:21           ` Ted Zlatanov
2014-03-23 23:57 ` Noam Postavsky
2015-12-25 20:40   ` Lars Ingebrigtsen
2015-12-25 20:45     ` Eli Zaretskii
2015-12-25 20:47       ` John Wiegley
2015-12-25 20:49         ` Eli Zaretskii
2015-12-25 20:55           ` John Wiegley
2015-12-25 20:59             ` Lars Ingebrigtsen
2015-12-25 21:13             ` Eli Zaretskii
2015-12-25 20:57         ` Lars Ingebrigtsen
2016-01-19 15:06     ` Live System User
2016-01-19 16:36       ` John Wiegley
2016-01-19 17:59         ` Lars Magne Ingebrigtsen
2016-02-22 18:45           ` Live System User

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528A78F9.1070903@thompsonclan.org \
    --to=rct@thompsonclan.org \
    --cc=15905@debbugs.gnu.org \
    --cc=tzz@lifelogs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).