From alexander.pohoyda@gmx.net Thu Jul 3 03:25:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_20,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Jul 2008 10:25:47 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m63APhhG009958 for ; Thu, 3 Jul 2008 03:25:45 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEM0U-0002go-WA for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEM0S-0002e7-Ah for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:41 -0400 Received: from [199.232.76.173] (port=34187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEM0S-0002dl-19 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:40 -0400 Received: from mail.gmx.net ([213.165.64.20]:42549) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KEM0R-0004HT-Dv for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:39 -0400 Received: (qmail 28966 invoked by uid 0); 3 Jul 2008 10:25:36 -0000 Received: from 155.56.68.221 by www153.gmx.net with HTTP; Thu, 03 Jul 2008 12:25:36 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Thu, 03 Jul 2008 12:25:36 +0200 From: "Alexander Pohoyda" Message-ID: <20080703102536.58570@gmx.net> MIME-Version: 1.0 Subject: Emacs 22, url package, problems with cache To: bug-gnu-emacs@gnu.org X-Authenticated: #14602519 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+rqLEIfzurPK25CcO7K4von8sr7H/0NkxxxFwYbF lzXlhLcvi23wdt3GAnUKF2PsmS8AHXMILTRg== Content-Transfer-Encoding: 7bit X-GMX-UID: FJtbf4hvbGInTG6ns2RnISlvcmZ1ZhwA X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. The url-automatic-caching variable is nil by default, so cache is not written (even the cache directory is not created). However, if I manually provide "If-Modified-Since" header in HTTP request and the server responds with "Not Modified 304", the cache file is expected to exists and is accessed -- which leads to error. Possible solution -- before accessing the cache file, check whether it exists (url-is-cached). Alternatively, do not expect a cache to exist if url-automatic-caching is set to nil. -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44 From mange@freemail.hu Mon Jul 7 05:36:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 526) by emacsbugs.donarmstrong.com; 7 Jul 2008 12:36:50 +0000 Received: from atum.ita.chalmers.se (atum.ita.chalmers.se [129.16.4.148]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m67Cafo0003516; Mon, 7 Jul 2008 05:36:43 -0700 Received: from zemdatav.stor.no-ip.org (remote3.student.chalmers.se [129.16.29.81]) by mail.chalmers.se (Postfix) with ESMTP id 68C098370; Mon, 7 Jul 2008 14:36:39 +0200 (CEST) Received: by zemdatav.stor.no-ip.org (Postfix, from userid 1000) id EA09B43953; Mon, 7 Jul 2008 14:36:37 +0200 (CEST) From: Magnus Henoch To: 526@debbugs.gnu.org Subject: Re: bug#526: Emacs 22, url package, problems with cache References: <20080703102536.58570@gmx.net> Mail-Copies-To: never Jabber-Id: legoscia@jabber.cd.chalmers.se Disposition-Notification-To: Magnus Henoch X-Hashcash: 1:23:080707:526@emacsbugs.donarmstrong.com::p+DJt1r4GoIwTjef:0000000000000000000000000000000451U Date: Mon, 07 Jul 2008 14:36:37 +0200 In-Reply-To: <20080703102536.58570@gmx.net> (Alexander Pohoyda's message of "Thu, 03 Jul 2008 12:25:36 +0200") Message-ID: <87abgteuqy.fsf@freemail.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-CrossAssassin-Score: 2 reassign 526 emacs,url thanks I keep meaning to clean up and fix various things in the url package, but now I _definitely_ don't have time. It would be nice if someone else took a look at this. Magnus From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 22 10:04:35 2011 Received: (at submit) by debbugs.gnu.org; 22 Jul 2011 14:04:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QkGLC-0001bT-P5 for submit@debbugs.gnu.org; Fri, 22 Jul 2011 10:04:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QkGLB-0001bH-Jd for submit@debbugs.gnu.org; Fri, 22 Jul 2011 10:04:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkGL0-00019Y-Vb for submit@debbugs.gnu.org; Fri, 22 Jul 2011 10:04:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGL0-00019U-U8 for submit@debbugs.gnu.org; Fri, 22 Jul 2011 10:04:22 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGKv-0006mC-FE for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2011 10:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkGKo-00017m-BP for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2011 10:04:17 -0400 Received: from prometheus.naquadah.org ([212.85.154.174]:47383 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGKo-000176-66 for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2011 10:04:10 -0400 Received: from cigue.easter-eggs.fr (unknown [IPv6:2a01:e35:2eb3:b690:2::3a]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id B3E2E5C0C8; Fri, 22 Jul 2011 16:04:07 +0200 (CEST) From: Julien Danjou To: "Alexander Pohoyda" Subject: Re: Emacs 22, url package, problems with cache References: <20080703102536.58570@gmx.net> Date: Fri, 22 Jul 2011 16:04:01 +0200 In-Reply-To: <20080703102536.58570@gmx.net> (Alexander Pohoyda's message of "Thu, 03 Jul 2008 12:25:36 +0200") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit Cc: 526@debbugs.gnu.org, bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 03 2008, Alexander Pohoyda wrote: > The url-automatic-caching variable is nil by default, so cache is not > written (even the cache directory is not created). However, if I manually > provide "If-Modified-Since" header in HTTP request and the server responds > with "Not Modified 304", the cache file is expected to exists and is > accessed -- which leads to error. > > Possible solution -- before accessing the cache file, check whether it ex= ists (url-is-cached). > Alternatively, do not expect a cache to exist if url-automatic-caching is= set to nil. I'm not sure this is really a bug after all. If you send a "If-Modified-Since" header, you have to already own a copy of the content. If what you propose is to return an empty buffer if there's no cache, that does not seems like the good solution neither. And I would not see the point to re-request the URL without the IMS header neither. 304 code is only returned if the client has done a conditional request, which should be the case *only* if it has a cached copy. Otherwise it's no sense. =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOKYNRAAoJEGEbqVCLeKXC6pYP/iT6vSwqcOnFbiLQUJENF3RB w6HbcNFW3Z6dTJOQhHWsoE7bNmAUluiTYlGCgRzScbEySZtTwoXSomEq3L29ZT0N JGKicZpblsUQ+2ZGUPM6nxcahK+dnH2Ki3AfZINDe8kdH52RCQIZNJBfxvEi72Nl v6QxKANVOix3Pw8yxUs66m6YsKtPFgHI+CqU80UCMg29juR0hdMnE1oEo8O/pVj2 6/9EBR1nHCcTLPAiekk2nPeXrPRpFOjQE1eP/OcINLVKKPn/Lk3w1chgnGnCv9K2 ubgQaxem3WPm2j0JwH0jRbnh0YMoKd0pwlEJx9fBlyMPP1/OfclR6uO6WBjvvFbj mbKkb5FFoz0xpBdfnX+j3KAyl0VoD2thI6KUxwwG6NswxKy5TEo/mtJI8Rgkay27 +SnrcKsSptnaM8J+79QMdfiNjEvQXiTYGTVxi0OFt20DQypl4JspFlN+x/fM3WEn qh3EaQtMTyMCbDckRMBtiEcvbxoDAHcKzijjm5DB0e2jX3QlLyqLczoZC2BoQNHU Cg09mxyKSyRGvt7BRziwUZ+VqnbmWjZLI7X5BFZa30e8e9o0Dol1YMLRA71s4x+q OUNK8jnYPkjpT2594h/sHJglJMv2FOdifxwIhM41EI55AwBN8gt/8hFTBhgfcc/U X0SK4puyx3qJxdim5IE0 =zVAB -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 13:19:20 2011 Received: (at control) by debbugs.gnu.org; 11 Sep 2011 17:19:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2ngb-0002Ri-QA for submit@debbugs.gnu.org; Sun, 11 Sep 2011 13:19:19 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2ngZ-0002Rb-6r for control@debbugs.gnu.org; Sun, 11 Sep 2011 13:19:15 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2ncK-0003Gk-RF for control@debbugs.gnu.org; Sun, 11 Sep 2011 19:14:52 +0200 Date: Sun, 11 Sep 2011 19:11:51 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #526 X-MailScanner-ID: 1R2ncK-0003Gk-RF X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316366093.01346@yj+qiFyZ4TCfVZewULfokQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 526 notabug close 526 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 13:38:06 2011 Received: (at 526) by debbugs.gnu.org; 11 Sep 2011 17:38:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2nyn-0003hk-Ud for submit@debbugs.gnu.org; Sun, 11 Sep 2011 13:38:06 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2nyb-0003fz-UF for 526@debbugs.gnu.org; Sun, 11 Sep 2011 13:37:59 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2nuM-0003cX-HL; Sun, 11 Sep 2011 19:33:30 +0200 From: Lars Magne Ingebrigtsen To: "Alexander Pohoyda" Subject: Re: Emacs 22, url package, problems with cache In-Reply-To: <20080703102536.58570@gmx.net> (Alexander Pohoyda's message of "Thu, 03 Jul 2008 12:25:36 +0200") Date: Sun, 11 Sep 2011 19:11:49 +0200 Message-ID: References: <20080703102536.58570@gmx.net> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Various's _Not Alone (3)_: "The Bricoleur - Prah Pip Ta" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R2nuM-0003cX-HL X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316367210.87278@bZKSx2+VPNmVJvNFJB0pxQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 526 Cc: 526@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Alexander Pohoyda" writes: > However, if I manually provide "If-Modified-Since" header in HTTP > request and the server responds with "Not Modified 304", the cache > file is expected to exists and is accessed -- which leads to error. I don't think this is a bug. You've (manually) claimed to have a cached copy of the item, and you don't -- so you should get an error, in my opinion. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Sun Aug 17 22:10:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Oct 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator