From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#12827: [2.0.6] web client: fails to parse 404 header Date: Tue, 27 Nov 2012 13:50:48 +0100 Message-ID: <87sj7v2orb.fsf@gnu.org> References: <87r4o5kuy8.fsf@gnu.org> <87d2znc0u2.fsf@gnu.org> <87ip8wezdd.fsf@gnu.org> <878v9rc9zz.fsf@gnu.org> <87lidpxlqf.fsf@gnu.org> <87obikyn2w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354020691 6649 80.91.229.3 (27 Nov 2012 12:51:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2012 12:51:31 +0000 (UTC) Cc: 12827@debbugs.gnu.org To: Daniel Hartwig Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Nov 27 13:51:43 2012 Return-path: Envelope-to: guile-bugs@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 1TdKdY-0004YA-7G for guile-bugs@m.gmane.org; Tue, 27 Nov 2012 13:51:40 +0100 Original-Received: from localhost ([::1]:45649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdKdN-0006I1-5J for guile-bugs@m.gmane.org; Tue, 27 Nov 2012 07:51:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdKdG-0006Hd-Sd for bug-guile@gnu.org; Tue, 27 Nov 2012 07:51:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdKd8-00028N-Mo for bug-guile@gnu.org; Tue, 27 Nov 2012 07:51:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdKd8-00028I-J3 for bug-guile@gnu.org; Tue, 27 Nov 2012 07:51:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TdKes-0000ku-Em for bug-guile@gnu.org; Tue, 27 Nov 2012 07:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 27 Nov 2012 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12827 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 12827-submit@debbugs.gnu.org id=B12827.13540207632874 (code B ref 12827); Tue, 27 Nov 2012 12:53:02 +0000 Original-Received: (at 12827) by debbugs.gnu.org; 27 Nov 2012 12:52:43 +0000 Original-Received: from localhost ([127.0.0.1]:41293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdKeY-0000kJ-QA for submit@debbugs.gnu.org; Tue, 27 Nov 2012 07:52:43 -0500 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:52955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdKeV-0000kB-N1 for 12827@debbugs.gnu.org; Tue, 27 Nov 2012 07:52:41 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 681BBAD44; Tue, 27 Nov 2012 13:50:48 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s+VKv5x7jbxA; Tue, 27 Nov 2012 13:50:48 +0100 (CET) Original-Received: from pluto (unknown [193.50.110.70]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 28A0AAD38; Tue, 27 Nov 2012 13:50:48 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Frimaire an 221 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Daniel Hartwig's message of "Tue, 27 Nov 2012 09:06:45 +0800") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6599 Archived-At: Daniel Hartwig skribis: > +;; emacs: (put 'declare-relative-uri-header! 'scheme-indent-function 1) > +(define (declare-relative-uri-header! name) > + (declare-header! name > + (lambda (str) > + (or (string->uri str) ; absolute URI > + (build-uri #f ; relative URI > + #:path str > + #:validate? #f))) > + uri? > + write-uri)) > + > > Sorry for late response. > > Setting uri-path to str will result in wrongly constructed uri > objects. In practice, the relative uri will often have a query part. > In theory, they may also contain any other part of the uri except > scheme (which would make them absolute). Sure. But then again, the goal was just to have a hack that would solve the problem initially reported here, while waiting for a proper fix. I=E2=80=99m open to suggestions. It seems to me that it=E2=80=99s either t= his or your patches against (web uri). WDYT? Ludo=E2=80=99.