From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.bugs Subject: bug#8622: 24.0.50; url-parse does not implement RFC3986 5.2 Date: Sun, 11 Sep 2011 17:53:37 +0200 Message-ID: <877h5f5b3y.fsf@keller.adm.naquadah.org> References: <87y5xv5ls1.fsf@keller.adm.naquadah.org> <87litv5eiv.fsf@keller.adm.naquadah.org> <87ehzn5ccp.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1315756437 10027 80.91.229.12 (11 Sep 2011 15:53:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 15:53:57 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , 8622@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 17:53:50 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2mLu-0000EN-2v for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 17:53:50 +0200 Original-Received: from localhost ([::1]:56829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2mLt-0007ev-MK for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2011 11:53:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2mLr-0007eq-FM for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 11:53:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2mLq-00039q-51 for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 11:53:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2mLq-00039m-3I for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2011 11:53:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R2mPy-0004Yo-0z; Sun, 11 Sep 2011 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Julien Danjou Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2011 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8622 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8622-submit@debbugs.gnu.org id=B8622.131575667817521 (code B ref 8622); Sun, 11 Sep 2011 15:58:01 +0000 Original-Received: (at 8622) by debbugs.gnu.org; 11 Sep 2011 15:57:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2mPu-0004YY-5d for submit@debbugs.gnu.org; Sun, 11 Sep 2011 11:57:58 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2mPs-0004YQ-Ey for 8622@debbugs.gnu.org; Sun, 11 Sep 2011 11:57:57 -0400 Original-Received: from keller.adm.naquadah.org (AMontsouris-651-1-27-169.w82-123.abo.wanadoo.fr [82.123.86.169]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 14D945C19F; Sun, 11 Sep 2011 17:53:39 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Sun, 11 Sep 2011 17:46:07 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 11 Sep 2011 11:58:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50901 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Sep 11 2011, Andreas Schwab wrote: > In which way does it not work? There is the scheme "http", the host > "a", the port 80 and the local part "/../../../g". Everything is fully > correct according to the rules of a URI. How the local part is > interpreted is only defined by the remote host. Men, this is getting me crazy. Let me rephrase the whole thing. You got an URL of the form: http://a/../../../foobar.png If you use Firefox, Chromium, wget, or whatever to retrieve it, the program will act according to RFC3986 and transform that URL to: http://a/foobar.png `url' from Emacs will not, and will fail to retrieve the image. Now I may be mistaken about where in the code the bug is, but there's a bug: the `url' functions are unable to fetch such an URL, whereas any other tool is able to. In Lisp: (switch-to-buffer (url-retrieve-synchronously "http://www.gnu.org/graphics/t-desktop-4-small.jpg")) =3D> That works (switch-to-buffer (url-retrieve-synchronously "http://www.gnu.org/../graphics/t-desktop-4-small.jpg")) =3D> Show a 400 bad request % wget http://www.gnu.org/../graphics/t-desktop-4-small.jpg =2D-2011-09-11 17:52:56-- http://www.gnu.org/graphics/t-desktop-4-small.jpg Resolving www.gnu.org (www.gnu.org)... 140.186.70.148 Connecting to www.gnu.org (www.gnu.org)|140.186.70.148|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 30195 (29K) [image/jpeg] Saving to: `t-desktop-4-small.jpg' 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D>] 30,195 66.5K/s in 0.4s=20=20=20=20 2011-09-11 17:52:56 (66.5 KB/s) - `t-desktop-4-small.jpg' saved [30195/3019= 5] =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) iQIcBAEBAgAGBQJObNmCAAoJEGEbqVCLeKXCS7wP/jNrOKYba3wDTX1bERT4ugRD RXHmfzEnU39eTrsDiZZ2LbYfDpIvXMjr2Q13iP7CCm05oVE6c4gYcDaAOaxGd75k QesObSAnDxYdjvzsHzTlHKDWdfIXYEWHfYno+bq5TiJ9jTD87UfzcUCQ29ZNzUon d9JbVDorU2x0GV+1EijI/kJX9xNk+i4CnRzz6J6u3dJ425QcdXNKNYPKuBcdox6M L93LN4sN8c656kAow9tZSV+KHqC3kSXhJoggCy/oUMP4JzlkD7r6ikr80lgluY1L xV+Cu+QsC0lJHg7Ls2+/tQ8KofCfJxluSDh+cqMiRtawsdZjj6KhHII3FY1qzxl6 ah63KY/mp52w3xY+zMblIElpb3/+9BDvB2VzBnAxOa0i1/grDUAVELKYxyxSfbvi I1hljM4IGCWFxLGuzac46ZB/45cbPNc4z5OHFxAYzW4uFAaGhjwreIps+tUxUVPO OrwCkkT2Vvg0AiqgefG1JfIDAao7VN+1cfExDMEcdPYf4DyZg+cqfLW2VMA7Xip/ 9+2RqP7H/6SzYROsG+waBp2HovoA58vmRU+xlr0eo8sUiYdkcwde2dNWO6RGAlHp P5Z9JV8uOdM+ATL2a43tzTNUuA4/IJLc5mlp56PLIhjkqWhsYIooODnlRQfrWYsT UBlcnQsXkONlu4xpnf9P =LClt -----END PGP SIGNATURE----- --=-=-=--