From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16751: 24.3.50; Export during Org export to HTML Date: Tue, 25 Feb 2014 20:32:59 +0200 Message-ID: <83lhwzyrdw.fsf@gnu.org> References: <86fvnmoxyp.fsf@somewhere.org> <86txbwlkeh.fsf@somewhere.org> <83ha7w75sc.fsf@gnu.org> <86wqgk7npj.fsf@somewhere.org> <86mwhf4jpo.fsf@somewhere.org> <834n3n17vg.fsf@gnu.org> <87ob1vnml6.fsf@bzg.ath.cx> <87vbw3t6g5.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1393353267 29904 80.91.229.3 (25 Feb 2014 18:34:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 18:34:27 +0000 (UTC) Cc: sva-news@mygooglest.com, bzg@altern.org, 16751@debbugs.gnu.org To: Nicolas Goaziou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 25 19:34:31 2014 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 1WIMpr-0001SP-1E for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 19:34:31 +0100 Original-Received: from localhost ([::1]:36561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMpq-00013k-5y for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 13:34:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMph-0000wm-FL for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:34:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMpb-0005FI-EY for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:34:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMpO-0004uO-BV; Tue, 25 Feb 2014 13:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WIMpN-0000qB-Qc; Tue, 25 Feb 2014 13:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 25 Feb 2014 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16751 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 16751-submit@debbugs.gnu.org id=B16751.13933531953167 (code B ref 16751); Tue, 25 Feb 2014 18:34:01 +0000 Original-Received: (at 16751) by debbugs.gnu.org; 25 Feb 2014 18:33:15 +0000 Original-Received: from localhost ([127.0.0.1]:39764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMoc-0000p1-IV for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:33:14 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:53819) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMoZ-0000oh-Te for 16751@debbugs.gnu.org; Tue, 25 Feb 2014 13:33:12 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N1K00M00E7PKC00@mtaout28.012.net.il> for 16751@debbugs.gnu.org; Tue, 25 Feb 2014 20:33:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1K00I1JE7X6940@mtaout28.012.net.il>; Tue, 25 Feb 2014 20:33:33 +0200 (IST) In-reply-to: <87vbw3t6g5.fsf@gmail.com> X-012-Sender: halo1@inter.net.il 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:86201 Archived-At: > From: Nicolas Goaziou > Cc: Eli Zaretskii , Sebastien Vauban , 16751@debbugs.gnu.org > Date: Tue, 25 Feb 2014 19:04:10 +0100 > > >> Ugh. Bastien, could you (or someone else of Org developers) please > >> look into this? Why does the URI above causes the recent version of > >> Org to pass an invalid file name such as > >> > >> ///opt/tomcat/4/apache-tomcat-4.1.40/... to expand-file-name > > > > I will look into this, but I can't promise anything before next week. > > > > Thanks for the heads up, > > A quick analysis. > > file:path > > is a valid file link type in Org. Therefore, > > file:///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml > > is parsed as a file link with path: > > ///opt/tomcat/4/apache-tomcat-4.1.40/webapps/../user_projects/GHIJSP2/deploy/WEB-INF/sharedfiles/resources/FR/domVal.xml But that's exactly the problem: producing a file name from a file:// URL requires to remove the "file://" prefix. It is invalid to leave the 2 extra slashes and remove only "file:". Why does Org do that? > FWIW, I don't see any wrong behaviour here (except that "file://" should > probably not be prepended to path in this case). Now I'm confused: why are you talking about prepending "file://", when the problem, as I understand it, happens because "file://" was not _removed_ from it together with the 2 slashes?