From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.bugs Subject: bug#16751: 24.3.50; Export during Org export to HTML Date: Tue, 25 Feb 2014 19:04:10 +0100 Message-ID: <87vbw3t6g5.fsf__33117.6992076964$1393351501$gmane$org@gmail.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393351487 7349 80.91.229.3 (25 Feb 2014 18:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 18:04:47 +0000 (UTC) Cc: Sebastien Vauban , 16751@debbugs.gnu.org To: Bastien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 25 19:04:54 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 1WIMN9-0002EB-L5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 19:04:51 +0100 Original-Received: from localhost ([::1]:36399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMN9-00029v-91 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 13:04:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMMg-0001ce-9f for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:04:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIMMa-0002wr-3T for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 13:04:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIMMN-0002c8-A2; Tue, 25 Feb 2014 13:04:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WIMMM-0007Bo-10; Tue, 25 Feb 2014 13:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 25 Feb 2014 18:04: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.139335143727624 (code B ref 16751); Tue, 25 Feb 2014 18:04:01 +0000 Original-Received: (at 16751) by debbugs.gnu.org; 25 Feb 2014 18:03:57 +0000 Original-Received: from localhost ([127.0.0.1]:39711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMMG-0007BU-Ju for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:03:56 -0500 Original-Received: from mail-wi0-f178.google.com ([209.85.212.178]:65187) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIMMD-0007B1-BI for 16751@debbugs.gnu.org; Tue, 25 Feb 2014 13:03:53 -0500 Original-Received: by mail-wi0-f178.google.com with SMTP id cc10so1115882wib.11 for <16751@debbugs.gnu.org>; Tue, 25 Feb 2014 10:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; bh=6Y8q0lNY8MoTQUkQ4kTdi2Pjz4mJrXaCsv7Ui4alrJw=; b=wFSv4sjwZZWsJY6FOrhV18FZCedJNAvzEsjqVliaQFHhNjLnvRZVa/lNQIH9bvvLmn +P/S2hlEEpoOA5Vlnttipecvr5IqT767MOvCt8vE4FzVx2Oc4TKACq6+9KlI7D+kbdZQ OVvCkfQmBi1IZjTZMj2qO5EbZP+L/2FViPB5au4SFp/2jVrcmv2AoyxXzVV4qIQV3Hfd J+RPohTx5ID/f3nXA5ecck7gzpQt4gxruT20jXLnlTaD/uIr3hP6B9A3ZCKjoIBYb/uD 2FCku+tjyKMvLoqK7E4S6MamNJYvc0kYcD97sXC0qjVoEMEvoA5L05bSXrpg3kznwQ8Y 0gWg== X-Received: by 10.180.73.103 with SMTP id k7mr1278324wiv.24.1393351427159; Tue, 25 Feb 2014 10:03:47 -0800 (PST) Original-Received: from selenimh ([91.224.148.150]) by mx.google.com with ESMTPSA id hy8sm52626072wjb.2.2014.02.25.10.03.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Feb 2014 10:03:46 -0800 (PST) In-Reply-To: <87ob1vnml6.fsf@bzg.ath.cx> (Bastien's message of "Tue, 25 Feb 2014 18:12:05 +0100") 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:86199 Archived-At: Hello, Bastien writes: >> 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 This path passes `file-name-absolute-p' predicate, so "ox-html.el" concatenates "file://" to (expand-file-name path) Since path is absolute, per `file-name-absolute-p', `expand-file-name' is probably needed for its "and canonicalize it" part. Note that other export back-ends, like, "ox-md.el", also use this construct. FWIW, I don't see any wrong behaviour here (except that "file://" should probably not be prepended to path in this case). Regards, -- Nicolas Goaziou