From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ryan C. Thompson" Newsgroups: gmane.emacs.bugs Subject: bug#15905: 24.3; url-copy-file sometimes silently downloads garbage or incomplete file Date: Mon, 18 Nov 2013 11:52:16 -0800 Message-ID: <528A6FF0.1070302@thompsonclan.org> References: <52864819.7060502@thompsonclan.org> <8738mwgc6h.fsf@flea.lifelogs.com> <52884BD5.4060905@thompsonclan.org> <87bo1hfrqp.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384804392 21400 80.91.229.3 (18 Nov 2013 19:53:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 19:53:12 +0000 (UTC) Cc: 15905@debbugs.gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 18 20:53:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ViUsm-0003rK-E3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2013 20:53:16 +0100 Original-Received: from localhost ([::1]:45652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViUsm-0006bO-1b for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Nov 2013 14:53:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViUse-0006aG-5x for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 14:53:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViUsZ-0003i2-Bc for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 14:53:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViUsZ-0003hn-2e for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 14:53:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ViUsY-0003UZ-Bg for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2013 14:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Ryan C. Thompson" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Nov 2013 19:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15905-submit@debbugs.gnu.org id=B15905.138480437313407 (code B ref 15905); Mon, 18 Nov 2013 19:53:02 +0000 Original-Received: (at 15905) by debbugs.gnu.org; 18 Nov 2013 19:52:53 +0000 Original-Received: from localhost ([127.0.0.1]:60408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViUsO-0003U8-1F for submit@debbugs.gnu.org; Mon, 18 Nov 2013 14:52:52 -0500 Original-Received: from mail-pd0-f175.google.com ([209.85.192.175]:55336) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ViUsL-0003To-4V for 15905@debbugs.gnu.org; Mon, 18 Nov 2013 14:52:49 -0500 Original-Received: by mail-pd0-f175.google.com with SMTP id w10so4871367pde.20 for <15905@debbugs.gnu.org>; Mon, 18 Nov 2013 11:52:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=8veanK4gJbk8+iuXV2B25SBleRuI+JhZi1Wy3GKN6b8=; b=fG4ig6NR+k/9A1u1gleQmrR5ibD3IzFFKgfW2vV1NgawZ+JqxRuzMwqkJWwqs7rc/F QnYb3mkuCCk7xKQoliWeHNWcO7TyifGrU6rSjX7ZqXEgAEwh11fqwJ+WoJIL5wsA2xqf kZaPOWov9ilNHl0LIz3WlRvrnASLb2hWrA4Qy5fePh9Jiashgldg77D5QummyrdeV1NF Dyn/B3aItIicR/FlUVC2C3ozEs6nEp9fJ2kzh78S4jvr6blZ63gZi3t7Tx14ZYSlCPdG yd8dj2AGypVw3Oa05yb6a63SuBYrRk0N4vv+0ekwaJ9SH1B22UF6qr9UrB/2K+PBMoGX vn+w== X-Gm-Message-State: ALoCoQmI/aZc5PTyUS/99uqTHQhiyIn9v7RaIOzLnl+0drqYHlG9RiFyxI0Cp+ipK+fZ5YgKum2p X-Received: by 10.66.159.132 with SMTP id xc4mr23023758pab.27.1384804362883; Mon, 18 Nov 2013 11:52:42 -0800 (PST) Original-Received: from [137.131.89.60] (salomon14.scripps.edu. [137.131.89.60]) by mx.google.com with ESMTPSA id gh3sm25281941pbb.2.2013.11.18.11.52.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 11:52:41 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <87bo1hfrqp.fsf@flea.lifelogs.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80740 Archived-At: On Mon 18 Nov 2013 11:13:18 AM PST, Ted Zlatanov wrote: > On Sat, 16 Nov 2013 20:53:41 -0800 Ryan wrote: > > R> On Sat Nov 16 15:27:18 2013, Ted Zlatanov wrote: >>> On Fri, 15 Nov 2013 08:13:13 -0800 Ryan 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.