From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 08 21:42:04 2010 Received: (at submit) by debbugs.gnu.org; 9 Jan 2010 02:42:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTRHA-0001u5-8l for submit@debbugs.gnu.org; Fri, 08 Jan 2010 21:42:04 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTRH9-0001ti-2o for submit@debbugs.gnu.org; Fri, 08 Jan 2010 21:42:03 -0500 Received: from mx10.gnu.org ([199.232.76.166]:45448) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTRH5-0002sY-Jh for submit@debbugs.gnu.org; Fri, 08 Jan 2010 21:41:59 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NTRH1-0003LW-Ly for submit@debbugs.gnu.org; Fri, 08 Jan 2010 21:41:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:35500) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTRH1-0003Ky-6R for submit@debbugs.gnu.org; Fri, 08 Jan 2010 21:41:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTRH0-0007q3-Fn for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 21:41:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTRGv-0007o3-Um for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 21:41:54 -0500 Received: from [199.232.76.173] (port=55176 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTRGv-0007o0-Ry for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 21:41:49 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:33465) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTRGv-0003JK-Fa for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 21:41:49 -0500 Received: by bwz7 with SMTP id 7so13752197bwz.26 for ; Fri, 08 Jan 2010 18:41:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=CcFUOiDhFp6aGQovSSBjubVZ4ycGH+/xUtsHyMUavnw=; b=WrhiF33G0RuAMNVQ3CXXrQTxOqX0kVgR8/LtJVeloanXFnmxr84CL1U39L8kPLLfCV OIsi2GxRgRINI3vfVXrjiYib4UrXXMFEFQVnbUk7L3PPCb0qwQ2nHh2wXGge8V6ps0Ww uQq+EZKy0m/q5kklsCVE7eplGfMqh1YZo1P+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=txc0ioDTF3v4jKL0jIcgTo3wOJ+upyJiP+125dL0sgSqDHKVlGr3TF8DoOrT8d0JKO uNkD9jEOWj3kXxMeWXnz6/ekAT3nm9zvgP/IK6451dp1qgY4koCD2nzrYID0bt50aWSI HHeLRqPGL44drPX6Qs1x8kE3RLiuv4wfF4QIA= MIME-Version: 1.0 Received: by 10.204.15.24 with SMTP id i24mr1502610bka.2.1263004908213; Fri, 08 Jan 2010 18:41:48 -0800 (PST) From: Juanma Barranquero Date: Sat, 9 Jan 2010 03:41:28 +0100 Message-ID: Subject: Password asked when visiting a file in a lightweight checkout To: Bug-Gnu-Emacs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit 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.4 (----) With an up-to-date trunk build. emacs -Q C-x C-f C:/emacs/repo/test-lightweight/etc/NEWS => "Password for Juanma@C:" -- Juanma being my user-name C-g C-x C-f C:/emacs/repo/test-lightweight/etc/NEWS => the file is visited OK. It's happening for all files in lightweight checkouts: C:\emacs\repo\test-lightweight> bzr info Lightweight checkout (format: 2a or development-subtree) Location: light checkout root: . repository checkout root: C:/emacs/repo/trunk checkout of branch: sftp://bzr.savannah.gnu.org/srv/bzr/emacs/trunk/ shared repository: C:/emacs/repo Related branches: public branch: sftp://bzr.savannah.gnu.org/srv/bzr/emacs/trunk parent branch: sftp://bzr.savannah.gnu.org/srv/bzr/emacs/trunk/ It does not happen for heavyweight checkouts, bound branches, or normal (non-bound, non-checkout) branches. Juanma From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 05:11:19 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 10:11:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTYHv-0005ZX-69 for submit@debbugs.gnu.org; Sat, 09 Jan 2010 05:11:19 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NTYHt-0005ZQ-AI for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 05:11:18 -0500 Received: (qmail invoked by alias); 09 Jan 2010 10:11:13 -0000 Received: from p4FC00737.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.7.55] by mail.gmx.net (mp038) with SMTP; 09 Jan 2010 11:11:13 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX189Mq511N89nlZcyVx15NEKieCaA3D09VT3FSkTek JcywXDWGcVrMtc From: Michael Albinus To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: Date: Sat, 09 Jan 2010 11:11:12 +0100 In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 03:41:28 +0100") Message-ID: <87eilzio5b.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Juanma Barranquero writes: > With an up-to-date trunk build. > > emacs -Q > C-x C-f C:/emacs/repo/test-lightweight/etc/NEWS > => "Password for Juanma@C:" -- Juanma being my user-name > C-g > C-x C-f C:/emacs/repo/test-lightweight/etc/NEWS > => the file is visited OK. Could you, please, set `debug-on-quit' to t? Then the backtrace after C-g might be interesting. > Juanma Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 07:44:42 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 12:44:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTagL-0007PI-Oe for submit@debbugs.gnu.org; Sat, 09 Jan 2010 07:44:41 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTag7-0007PC-QY for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 07:44:40 -0500 Received: by bwz8 with SMTP id 8so13004127bwz.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 04:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=SDrZPf+IoYl0UZTCk1EBDJk2sCTR//ojZC15K/efasM=; b=UJbNqN44yOrnJ82/X4hh5z53tPTYwy884Uy5B7LXYLIvIILco2QFlG0EYp3846iXiH sgfdqCmwsTZPiyo7CuEDMrIA0VtSq3VIMLOKNKy9Vm5G0+/iB9MF1PORKam0xXciCP4d QeMQUhu7zueIwWEQHO9lInMrdVErlkZLD/jN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VQdS15iJXR7sX0QfEsKqz3KllPl3CKK6t1ULFIezLauwCZdHsgoAw3ZVP5oVgyXRET IxzD+lBlJbpOZiV3lUoKs72j+JTggVHqWDBNNdDEe56nWspTJJj7RbkBqMCr33RiB91i ZAFUxa+J639M7709vMPUfuDB0t24iF5/BrNug= MIME-Version: 1.0 Received: by 10.204.2.196 with SMTP id 4mr603556bkk.7.1263041062186; Sat, 09 Jan 2010 04:44:22 -0800 (PST) In-Reply-To: <87eilzio5b.fsf@gmx.de> References: <87eilzio5b.fsf@gmx.de> From: Juanma Barranquero Date: Sat, 9 Jan 2010 13:44:02 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Michael Albinus Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.8 (--) On Sat, Jan 9, 2010 at 11:11, Michael Albinus wrote: > Could you, please, set `debug-on-quit' to t? Then the backtrace after > C-g might be interesting. Yes, of course. The backtrace corresponds to find-file etc/NEWS in branch C:/emacs/repo/test-lightweight, which is a lightweight checkout of C:/emacs/repo/trunk. Juanma Debugger entered--Lisp error: (quit) byte-code("\301^P\302\303!\207" [quit-flag t eval (ignore nil)] 2) read-passwd("Password for Juanma@C: ") ange-ftp-get-passwd("C" "Juanma") ange-ftp-get-process("C" "Juanma") ange-ftp-host-type("C" "Juanma") ange-ftp-ls("/C:/emacs/repo/trunk/.bzr/branch/format/" "-al" t t) ange-ftp-get-files("/C:/emacs/repo/trunk/.bzr/branch/format" t) ange-ftp-file-entry-p("/C:/emacs/repo/trunk/.bzr/branch/format") ange-ftp-file-exists-p("/C:/emacs/repo/trunk/.bzr/branch/format") apply(ange-ftp-file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") byte-code("\304^X\305 ^Y\306\216\307\n^K\"+\207" [debug-on-error save-match-data-internal fn args t match-data ((byte-code "\301^H\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) apply] 3) ange-ftp-hook-function(file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") apply(ange-ftp-hook-function file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") tramp-ftp-file-name-handler(file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") apply(tramp-ftp-file-name-handler file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") tramp-file-name-handler(file-exists-p "/C:/emacs/repo/trunk/.bzr/branch/format") file-exists-p("/C:/emacs/repo/trunk/.bzr/branch/format") vc-bzr-working-revision("c:/emacs/repo/test-lightweight/etc/NEWS") apply(vc-bzr-working-revision "c:/emacs/repo/test-lightweight/etc/NEWS") vc-call-backend(Bzr working-revision "c:/emacs/repo/test-lightweight/etc/NEWS") vc-working-revision("c:/emacs/repo/test-lightweight/etc/NEWS" Bzr) vc-default-mode-line-string(Bzr "c:/emacs/repo/test-lightweight/etc/NEWS") apply(vc-default-mode-line-string Bzr "c:/emacs/repo/test-lightweight/etc/NEWS") vc-call-backend(Bzr mode-line-string "c:/emacs/repo/test-lightweight/etc/NEWS") vc-mode-line("c:/emacs/repo/test-lightweight/etc/NEWS" Bzr) vc-find-file-hook() run-hooks(find-file-hook) after-find-file(nil t) find-file-noselect-1(# "c:/emacs/repo/test-lightweight/etc/NEWS" nil nil "c:/emacs/repo/test-lightweight/etc/NEWS" ((3072 4 . 28960) (10917 . 23791))) find-file-noselect("c:/emacs/repo/test-lightweight/etc/NEWS" nil nil t) find-file("c:/emacs/repo/test-lightweight/etc/NEWS" t) call-interactively(find-file nil nil) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 08:52:32 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 13:52:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTbk0-00084G-96 for submit@debbugs.gnu.org; Sat, 09 Jan 2010 08:52:32 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTbjx-000849-LC for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 08:52:30 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KVZ00H00F3NTS00@a-mtaout20.012.net.il> for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 15:51:59 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.222.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KVZ00C4HFUMDS61@a-mtaout20.012.net.il>; Sat, 09 Jan 2010 15:51:59 +0200 (IST) Date: Sat, 09 Jan 2010 15:52:33 +0200 From: Eli Zaretskii Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout In-reply-to: X-012-Sender: halo1@inter.net.il To: Juanma Barranquero , 5345@debbugs.gnu.org Message-id: <83vdfb8jxa.fsf@gnu.org> References: <87eilzio5b.fsf@gmx.de> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5345 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii 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.0 (--) > From: Juanma Barranquero > Date: Sat, 9 Jan 2010 13:44:02 +0100 > Cc: 5345@debbugs.gnu.org > > file-exists-p("/C:/emacs/repo/trunk/.bzr/branch/format") <<<<<<<<<< > vc-bzr-working-revision("c:/emacs/repo/test-lightweight/etc/NEWS") > apply(vc-bzr-working-revision "c:/emacs/repo/test-lightweight/etc/NEWS") > vc-call-backend(Bzr working-revision "c:/emacs/repo/test-lightweight/etc/NEWS") Here's the bug: some code thinks that "C:/foo" is not an absolute file name, probably because it checks for the leading slash. So it prepends a slash, which alters the semantics of the file to be a remote file on a mythical machine called "C", with predictable results. I'd take a good look at vc-bzr-working-revision and the subroutines it calls. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 09:36:57 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 14:36:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTcQz-00006N-85 for submit@debbugs.gnu.org; Sat, 09 Jan 2010 09:36:57 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTcQw-00006F-R0 for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 09:36:55 -0500 Received: by bwz8 with SMTP id 8so13035282bwz.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 06:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=29Q+Uk9sNX6a5xjfs9Q/w3uRM9kp7hVd2hUUTb6so9o=; b=YQ/Rmgprpg6JGfZpK7W9RDTY25udZ+ZIlRH/3p7rvB/0a6mZmB6Qj71222bGZyuIWi MMl0ySq8Thn1MATOYIhCxQl638D3fLNk8fQ7uN1hMedLYuHHtpxOQhwKDBc/TR+0fK90 8B1iU2l6oW03bvg/zBtit0nJRUmqVTcOGG/gE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VNmCCqsViIwhQcSowM8MztyWzALJyEAu8cBuzetO+tP7P1ks/RxD7z9Ouj946GVhJh WSUNOlbnriH7eyUZzgcgy4fz+I2U5VVpuov17PysHNvmALRf+ncE+El0dqA3TVGLyE9+ ZE4QsSbO89yEZLjgaK0A8qkBifkgTk2kOSHp8= MIME-Version: 1.0 Received: by 10.204.24.84 with SMTP id u20mr5518575bkb.164.1263047809300; Sat, 09 Jan 2010 06:36:49 -0800 (PST) In-Reply-To: <83vdfb8jxa.fsf@gnu.org> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> From: Juanma Barranquero Date: Sat, 9 Jan 2010 15:36:29 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5345 Cc: Dan Nicolaescu , 5345@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.8 (--) On Sat, Jan 9, 2010 at 14:52, Eli Zaretskii wrote: > Here's the bug: You're right. > some code thinks that "C:/foo" is not an absolute file > name, probably because it checks for the leading slash. In fact, what happens is that a regular expression is removing the initial file:// from a file: URI, and not taking into account that it could start with a triple-slash. Or it *is* taking it into account and doing it on purpose to get a /path on Unix. If removing three slashes is OK, the patch is as easy as changing "file://\\(.+\\)" to "file:///?\\(.+\\)". If not, a check for windows (or for a Windows-style path) will have to be done. Dan, comments? Juanma From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 13:47:11 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 18:47:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgL8-0002GY-PB for submit@debbugs.gnu.org; Sat, 09 Jan 2010 13:47:10 -0500 Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgL6-0002GG-CX for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 13:47:09 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o09Ikwiq018317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jan 2010 10:46:58 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o09Ikv1G009474; Sat, 9 Jan 2010 10:46:57 -0800 (PST) Date: Sat, 9 Jan 2010 10:46:57 -0800 (PST) Message-Id: <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 15:36:29 +0100") Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o09Ikwiq018317 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.5 (--) Juanma Barranquero writes: > On Sat, Jan 9, 2010 at 14:52, Eli Zaretskii wrote: > > > Here's the bug: > > You're right. > > > some code thinks that "C:/foo" is not an absolute file > > name, probably because it checks for the leading slash. > > In fact, what happens is that a regular expression is removing the > initial file:// from a file: URI, and not taking into account that it > could start with a triple-slash. Or it *is* taking it into account and > doing it on purpose to get a /path on Unix. > > If removing three slashes is OK, the patch is as easy as changing The third slash is part of the absolute file name, so it needs to stay. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 13:53:17 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 18:53:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgR2-0002Li-OZ for submit@debbugs.gnu.org; Sat, 09 Jan 2010 13:53:16 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NTgR0-0002LY-L3 for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 13:53:15 -0500 Received: (qmail invoked by alias); 09 Jan 2010 18:53:09 -0000 Received: from p4FC00737.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.7.55] by mail.gmx.net (mp035) with SMTP; 09 Jan 2010 19:53:09 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19u98lcOA1us9jV6GdVlptcbpKJx4EygFjlGfrwiM R8nFdgjek+GKwK From: Michael Albinus To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> Date: Sat, 09 Jan 2010 19:53:08 +0100 In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 13:44:02 +0100") Message-ID: <87aawnhzzf.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Juanma Barranquero writes: > tramp-file-name-handler(file-exists-p > "/C:/emacs/repo/trunk/.bzr/branch/format") > file-exists-p("/C:/emacs/repo/trunk/.bzr/branch/format") > vc-bzr-working-revision("c:/emacs/repo/test-lightweight/etc/NEWS") Adding a leading "/" to "C:/emacs/repo/trunk/.bzr/branch/format" in `vc-bzr-working-revision' seems to be the culprit. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 14:07:16 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 19:07:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgea-0002zH-8X for submit@debbugs.gnu.org; Sat, 09 Jan 2010 14:07:16 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgeY-0002zA-By for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 14:07:14 -0500 Received: by bwz8 with SMTP id 8so13122047bwz.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 11:07:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=TxlQv9ZuttClE+Yl8PBJfyoDZLHLB5Oy2bpr+bMyCcs=; b=DCd1MpheNnC8wjHpwtXl3zfEtwdyg4/Q4+qc9fwWk8ZQHFRA+3ZQ2rz6lW1Bw86WuH 1Ch19fyiEBR26qCpcAg1/U/zsCmwFCImF6x8EESIiBVgc0E3jFW4D6zUHOhZr4+vksLq vYgyJTUoZ2sYgvQlI6UGCR99bEXR+A46LUWjg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UjhWFXwK7VElkIheVVW+7ioGBgC6TIl297CDSwCter/IFypNazhyr8NBbTgnzeQ86d jA+Pv1ukZt35xHjvOVPfgaeMKOdaN8ApuPXU8ViMfoqdiuZQNzlNkQjWB0lJJONLKLRh cu4fNRSFhQneBRIHY9rRBuYcPIIJO+Lnm44lo= MIME-Version: 1.0 Received: by 10.204.156.210 with SMTP id y18mr1675998bkw.37.1263064029137; Sat, 09 Jan 2010 11:07:09 -0800 (PST) In-Reply-To: <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> From: Juanma Barranquero Date: Sat, 9 Jan 2010 20:06:49 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Dan Nicolaescu Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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 (--) On Sat, Jan 9, 2010 at 19:46, Dan Nicolaescu wrote: > The third slash is part of the absolute file name Not for Windows file:// URIs. For example, in one of my lightweight checkouts, .bzr/branch/location contains: file:///C:/emacs/repo/bugs/5313/ > so it needs to stay. OK, then we must also check whether the absolute filename is Windows-style, i.e. ^/?[A-Z]:.*$ (assuming the unwanted first slash). Do you want to fix it? Juanma From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 14:21:07 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 19:21: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 1NTgry-0003cd-TO for submit@debbugs.gnu.org; Sat, 09 Jan 2010 14:21:07 -0500 Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTgrx-0003cG-As for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 14:21:05 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o09JKrEL027889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jan 2010 11:20:53 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o09JKqPp010697; Sat, 9 Jan 2010 11:20:52 -0800 (PST) Date: Sat, 9 Jan 2010 11:20:52 -0800 (PST) Message-Id: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 20:06:49 +0100") Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o09JKrEL027889 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_BZ 0.08) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.5 (--) Juanma Barranquero writes: > On Sat, Jan 9, 2010 at 19:46, Dan Nicolaescu wrote: > > > The third slash is part of the absolute file name > > Not for Windows file:// URIs. For example, in one of my lightweight I meant for unix-like systems. > checkouts, .bzr/branch/location contains: > > file:///C:/emacs/repo/bugs/5313/ Is that the correct URL syntax? If not, they please let the bzr people know about it. > > so it needs to stay. > > OK, then we must also check whether the absolute filename is > Windows-style, i.e. ^/?[A-Z]:.*$ (assuming the unwanted first slash). > Do you want to fix it? No. I can't test it. But please do it with a system-type test, /C:/emacs/repo/bugs/5313/ is a valid unix file name. Probably not used too much, but valid, so it should not be excluded. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 15:09:25 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 20:09:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NThcj-0004ZB-Jg for submit@debbugs.gnu.org; Sat, 09 Jan 2010 15:09:25 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NThci-0004Z4-13 for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 15:09:24 -0500 Received: by bwz8 with SMTP id 8so13140122bwz.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 12:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bSRy0zhUY9D83ivIXWX8+rkt7uWSNEDO4YNCHczkVMI=; b=mM51KFtCKulrDUkkpfaA0lj2RVcBgBNTc8t2+zrhEqeHhSWIxSUeiRovASjWoMTxmn Zbg65oZ3C16X+w5+WrXtOUTLNlubU80mnVEHHcdxLLW4zBXHja82/YiE/ZWPje893jYZ fGpPtDZqlh5B7ss6uSueU7SlShO1MsayuaiE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=tghcN95fd1LhkNL6tinmOFls3DiiF8ZUW+VCttU3P6UbFbDLnElYWqNVtJdNeQZB74 vPCGQFf4vHNllJEoO7gJTwgp4z4srqzw5pKdLmm1pJ3YkO5GvX/e5uwG/kYKMhWR4ZZ0 qTJI9BolhEYpGkrv+h6fRoTuYn44z6e9j6i1s= MIME-Version: 1.0 Received: by 10.204.154.91 with SMTP id n27mr3079730bkw.147.1263067758266; Sat, 09 Jan 2010 12:09:18 -0800 (PST) In-Reply-To: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> From: Juanma Barranquero Date: Sat, 9 Jan 2010 21:08:58 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Dan Nicolaescu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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 (--) On Sat, Jan 9, 2010 at 20:20, Dan Nicolaescu wrote: > Is that the correct URL syntax? Yes. This kind of URL is very common when dealing with files on Windows. According to RFC 1738 ("Uniform Resource Locators (URL)"), section 3.10 ("FILES"), the syntax is file:/// i.e., the slashes are separators. And "[a]s a special case, can be the string "localhost" or the empty string; this is interpreted as `the machine from which the URL is being interpreted'.". So file:///C:/path is a perfectly valid URL for a local file on Windows, as a shorthand for file://localhost/C:/path. I'm surprised Unix URLs for absolute paths do not start with file:////. > But please do it with a system-type test, /C:/emacs/repo/bugs/5313/ is a > valid unix file name. =C2=A0Probably not used too much, but valid, so it > should not be excluded. Are you OK with the following patch? Juanma =3D=3D=3D modified file 'lisp/vc-bzr.el' --- lisp/vc-bzr.el 2010-01-06 15:11:52 +0000 +++ lisp/vc-bzr.el 2010-01-09 20:06:10 +0000 @@ -361,6 +361,11 @@ ;; look there for the version information. (when (re-search-forward "file://\\(.+\\)" nil t) (let ((l-c-parent-dir (match-string 1))) + (when (and (memq system-type '(ms-dos windows-nt)) + (string-match-p "^/[[:alpha:]]:" l-c-parent-dir)) + ;;; On Windows, file:// URLs often have three slashes, + ;;; so we must remove the remaining one (bug#5345) + (setq l-c-parent-dir (substring l-c-parent-dir 1))) (setq branch-format-file (expand-file-name vc-bzr-admin-branch-format-file l-c-parent-dir)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 15:39:27 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 20:39:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTi5m-0004oi-V9 for submit@debbugs.gnu.org; Sat, 09 Jan 2010 15:39:27 -0500 Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTi5Y-0004oW-3M for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 15:39:24 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o09Kd26b021640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jan 2010 12:39:02 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o09Kd2B0013507; Sat, 9 Jan 2010 12:39:02 -0800 (PST) Date: Sat, 9 Jan 2010 12:39:02 -0800 (PST) Message-Id: <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 21:08:58 +0100") Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o09Kd26b021640 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Juanma Barranquero writes: > On Sat, Jan 9, 2010 at 20:20, Dan Nicolaescu wrote: >=20 > > Is that the correct URL syntax? >=20 > Yes. This kind of URL is very common when dealing with files on > Windows. According to RFC 1738 ("Uniform Resource Locators (URL)"), > section 3.10 ("FILES"), the syntax is >=20 > file:/// >=20 > i.e., the slashes are separators. And "[a]s a special case, can > be the string "localhost" or the empty string; this is interpreted as > `the machine from which the URL is being interpreted'.". So > file:///C:/path is a perfectly valid URL for a local file on Windows, > as a shorthand for file://localhost/C:/path. I'm surprised Unix URLs > for absolute paths do not start with file:////. >=20 > > But please do it with a system-type test, /C:/emacs/repo/bugs/5313/ i= s a > > valid unix file name. =C2=A0Probably not used too much, but valid, so= it > > should not be excluded. >=20 > Are you OK with the following patch? Sure. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 15:58:24 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 20:58:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiO8-0005T1-Ds for submit@debbugs.gnu.org; Sat, 09 Jan 2010 15:58:24 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiO7-0005Su-2w for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 15:58:23 -0500 Received: by fxm26 with SMTP id 26so18042175fxm.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 12:58:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=9qAVHWwFo5A6eHQuo6y5JnBF9OBriHIectmqUeWV9Gw=; b=XFcnVUjEw+9giFHKZdxAoLbpV6fVH8Ilb52IxZeelhuLD5wkat17cZSlvI1zZiHZIU P4ZuRocPZmBkVMp2i7oupRJzDlD4CEgn9WgbEH/5i2yrEpJrXQBYuHZ3kGFcT21Ne414 5yUrfWg47mD0m067ogF3N9mEISLSVDWTeOG0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=aKA3bHRkYI6GcQ2m53uQ3gh0eIfl+DL+wtIEtZdcRl82zwTT++fA8w1Q8Kt3tTHhoG OafXGoB+6Hs7sDfZefCe/KD1uo7mdwLghpsHGqnAwRJbv1fTRo2Z1LeG1bIraPaU0Whf +vufMcnVp218FiXZGCPrCYd/04GbDmOrtJH1w= MIME-Version: 1.0 Received: by 10.239.192.79 with SMTP id d15mr697335hbi.52.1263070698164; Sat, 09 Jan 2010 12:58:18 -0800 (PST) In-Reply-To: <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> From: Lennart Borgman Date: Sat, 9 Jan 2010 21:57:58 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Dan Nicolaescu , 5345@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5345 Cc: Juanma Barranquero 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.5 (--) On Sat, Jan 9, 2010 at 9:39 PM, Dan Nicolaescu wrote: > Juanma Barranquero writes: > > =C2=A0> On Sat, Jan 9, 2010 at 20:20, Dan Nicolaescu w= rote: > =C2=A0> > =C2=A0> > Is that the correct URL syntax? > =C2=A0> > =C2=A0> Yes. This kind of URL is very common when dealing with files on > =C2=A0> Windows. According to RFC 1738 ("Uniform Resource Locators (URL)"= ), > =C2=A0> section 3.10 ("FILES"), the syntax is > =C2=A0> > =C2=A0> =C2=A0 =C2=A0 =C2=A0file:/// > =C2=A0> > =C2=A0> i.e., the slashes are separators. And "[a]s a special case, can > =C2=A0> be the string "localhost" or the empty string; this is interprete= d as > =C2=A0> `the machine from which the URL is being interpreted'.". So > =C2=A0> file:///C:/path is a perfectly valid URL for a local file on Wind= ows, > =C2=A0> as a shorthand for file://localhost/C:/path. I'm surprised Unix U= RLs > =C2=A0> for absolute paths do not start with file:////. We were discussing before if file://c:/some/where.txt also was correct. We could not rule out the possibility that it was. So please take care of this case too. > =C2=A0> > But please do it with a system-type test, /C:/emacs/repo/bugs/5= 313/ is a > =C2=A0> > valid unix file name. =C2=A0Probably not used too much, but val= id, so it > =C2=A0> > should not be excluded. > =C2=A0> > =C2=A0> Are you OK with the following patch? > > Sure. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:04:43 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 21:04:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiUE-0005WX-SP for submit@debbugs.gnu.org; Sat, 09 Jan 2010 16:04:43 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiUA-0005WQ-DW for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 16:04:40 -0500 Received: by bwz8 with SMTP id 8so13155782bwz.39 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 13:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=oab4UHlLK7xBxygJlolRXUxT8e66FMoPV2eVXoC/SFE=; b=HqW62pX2XxBpzP7dDZvZF2ulYshxkVg1iziQqc4FFMLSZAxCJlpKhZ67ZHAFBOvTSJ 2SWcbvsQOHVnCKmp6rg7A9qs4EuqmtB7O4Q7HlZMxYCZu/Cp07xUh/M5Zcac39S/r85u JkI++KYOcOyWGlOsqTIYY9xwUpTHteTo97DRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=k4RHzoanxwQUyw3z4RskhDttMd72ViOmdCRWKJgqR6c//iClow16AP/Qm0gcIhJo+w JhgEtnZmsZxsbP8dOyMbGGvDAxVq/TyfwLqvPcZzpBGACRYDA1hRMlRt9cCOMo3+CpO2 qGdAAcbuzM/uwDjJa6voEXFXucU6CsxBk+KX8= MIME-Version: 1.0 Received: by 10.204.2.196 with SMTP id 4mr848829bkk.7.1263071073094; Sat, 09 Jan 2010 13:04:33 -0800 (PST) In-Reply-To: References: <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> From: Juanma Barranquero Date: Sat, 9 Jan 2010 22:04:13 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Dan Nicolaescu 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 (--) On Sat, Jan 9, 2010 at 21:57, Lennart Borgman wrote: > We were discussing before if file://c:/some/where.txt also was > correct. We could not rule out the possibility that it was. I don't think it is. RFC 1378 allows file://host/path, and some other RFC (don't remember the #) apparently allows file:/path, but that wouldn't grok file://c:/my/path (though it could grok file://my/path, if the drive is omitted). > So please take care of this case too. It's already taken care of. Look at the patch. Juanma From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:08:31 2010 Received: (at 5345-done) by debbugs.gnu.org; 9 Jan 2010 21:08:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiXv-0005YN-4W for submit@debbugs.gnu.org; Sat, 09 Jan 2010 16:08:31 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTiXt-0005YE-Fn for 5345-done@debbugs.gnu.org; Sat, 09 Jan 2010 16:08:29 -0500 Received: by bwz8 with SMTP id 8so13156864bwz.39 for <5345-done@debbugs.gnu.org>; Sat, 09 Jan 2010 13:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=YGnFimWWhA8kSy6VHVv9mRHTvqX3+19YlBvze1P7ow4=; b=IbSLNc2PG+nZ48GFiTYdeHuOWeDWVQouw+ygap0lwEy/fvPg+aR+EHa7KBthilPXXZ TfNs2J8Mx1/UzWXh+/ennXpKyDNyEV2Yyk5VkkiB1Q6Os6MrWs36BTNXYKjJNfRSODTm tKzHsAPIzyU1U2oUtEvddvIi8zIaHIL931spc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=wKjPz+klIth3AkTNZHsVzvjEkfhPfzFfhbvW5aAYwdy86YehGAQEWH5LevUt/IWqdd vSFU1CqMjgkCIe4qfIdkQuYj0k+NilQ+jbaqvuMywmOoxReB6bPOWpPXQ9HUi2Xmc3ZR N/+61cdV+HctHMuaZnmcrV4+R4gK1lEvMzfQw= MIME-Version: 1.0 Received: by 10.204.33.147 with SMTP id h19mr2526063bkd.156.1263071304107; Sat, 09 Jan 2010 13:08:24 -0800 (PST) In-Reply-To: <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> From: Juanma Barranquero Date: Sat, 9 Jan 2010 22:08:04 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: 5345-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345-done 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 (--) Patch installed. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:12:46 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 21:12:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTic1-0005aW-PE for submit@debbugs.gnu.org; Sat, 09 Jan 2010 16:12:45 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTic0-0005aQ-6k for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 16:12:44 -0500 Received: by fg-out-1718.google.com with SMTP id 22so6998099fge.15 for <5345@debbugs.gnu.org>; Sat, 09 Jan 2010 13:12:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ea7JKFUIgJw6sflUQ9khz1TnOZ5eD1KTnZFSkVDN2b4=; b=sblwvkGa59+eJMx9QThN6Ho5+s1A/vawnYGg/N6y5qRaWmfzvylBiZrxsaKpgYjxyp n6sH66/g30EnlFKKqS9Nmo8sejxSJXIdGLZdI68nyDXRzX10NU/ya3vfwHDkof7VtNqn QQ3KbOjT3BCz9YNZl6iCk584RuHIbQf9Qq11o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=KDj5aQxoam1PoeXKhX+diPsVwefJyzEDP9+A3trRBufgsR9N0BlAIlprrTCUollzI8 +aH7aRAFOTkJb2/k9kiaRBrf/tFW4HlZt9TKcCvIumXgpibFqdg+mPABjr/fklRPCGPX ifZeDF5CfmP4FBK9WKJdD93h0gNYRcmmYLIJQ= MIME-Version: 1.0 Received: by 10.239.186.193 with SMTP id i1mr215528hbh.91.1263071559242; Sat, 09 Jan 2010 13:12:39 -0800 (PST) In-Reply-To: References: <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <201001092039.o09Kd2B0013507@godzilla.ics.uci.edu> From: Lennart Borgman Date: Sat, 9 Jan 2010 22:12:19 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Juanma Barranquero Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Dan Nicolaescu 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.6 (--) On Sat, Jan 9, 2010 at 10:04 PM, Juanma Barranquero wrot= e: > On Sat, Jan 9, 2010 at 21:57, Lennart Borgman = wrote: > >> We were discussing before if file://c:/some/where.txt also was >> correct. We could not rule out the possibility that it was. > > I don't think it is. RFC 1378 allows file://host/path, and some other > RFC (don't remember the #) apparently allows file:/path, I am surprised, but I do not remember the details any more. > but that > wouldn't grok file://c:/my/path ... on un*x? ... ;-) Maybe this is where the confusion comes from (but the spec seemed unclear to me). (though it could grok file://my/path, > if the drive is omitted). > >> So please take care of this case too. > > It's already taken care of. Look at the patch. Thanks. > =C2=A0 =C2=A0Juanma > From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:15:21 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 21:15:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTieX-0005c5-7S for submit@debbugs.gnu.org; Sat, 09 Jan 2010 16:15:21 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NTieU-0005c0-Pk for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 16:15:19 -0500 Received: (qmail invoked by alias); 09 Jan 2010 21:15:13 -0000 Received: from p4FC00737.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.7.55] by mail.gmx.net (mp048) with SMTP; 09 Jan 2010 22:15:13 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18VqnJM9GcVDpcPHwrspR+Lnk7MGxizInNsZPJQ3M b2IxdrqSh0gOFI From: Michael Albinus To: Dan Nicolaescu Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> Date: Sat, 09 Jan 2010 22:15:10 +0100 In-Reply-To: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sat, 9 Jan 2010 11:20:52 -0800 (PST)") Message-ID: <87637bhtep.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Dan Nicolaescu writes: > But please do it with a system-type test, /C:/emacs/repo/bugs/5313/ is a > valid unix file name. Probably not used too much, but valid, so it > should not be excluded. Emacs would handle it as a remote file name. If such a local file name is intended, it must be prefixed by "/:". Maybe it is a good idea to do it for all URLs starting with "file:///" in vc-bzr (and somewhere else). Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 09 16:33:23 2010 Received: (at 5345) by debbugs.gnu.org; 9 Jan 2010 21:33:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTivz-0005mp-3t for submit@debbugs.gnu.org; Sat, 09 Jan 2010 16:33:23 -0500 Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTivx-0005mi-41 for 5345@debbugs.gnu.org; Sat, 09 Jan 2010 16:33:21 -0500 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o09LXAuk026137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jan 2010 13:33:10 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o09LXACP015420; Sat, 9 Jan 2010 13:33:10 -0800 (PST) Date: Sat, 9 Jan 2010 13:33:10 -0800 (PST) Message-Id: <201001092133.o09LXACP015420@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Michael Albinus Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87637bhtep.fsf@gmx.de> In-Reply-To: <87637bhtep.fsf@gmx.de> (Michael Albinus's message of "Sat, 09 Jan 2010 22:15:10 +0100") Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o09LXAuk026137 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_BZ 0.08) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Michael Albinus writes: > Dan Nicolaescu writes: > > > But please do it with a system-type test, /C:/emacs/repo/bugs/5313/ is a > > valid unix file name. Probably not used too much, but valid, so it > > should not be excluded. > > Emacs would handle it as a remote file name. If such a local file name > is intended, it must be prefixed by "/:". Maybe it is a good idea to do > it for all URLs starting with "file:///" in vc-bzr (and somewhere else). Can handling as a remote file name be disabled? The code path in question makes sense when the file is local, if the file is remote, then just running the corresponding bzr command won't make a difference. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 01:51:53 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 06:51:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTreT-0007HD-DC for submit@debbugs.gnu.org; Sun, 10 Jan 2010 01:51:53 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NTreQ-0007H8-Kk for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 01:51:51 -0500 Received: (qmail invoked by alias); 10 Jan 2010 06:51:46 -0000 Received: from p4FC00B14.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.11.20] by mail.gmx.net (mp005) with SMTP; 10 Jan 2010 07:51:46 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/ONDwrSS7O7K5ROC6XtmjIdRe1JwCV6sJzQ4LQb8 qtdbi9GPLXjq1e From: Michael Albinus To: Dan Nicolaescu Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87637bhtep.fsf@gmx.de> <201001092133.o09LXACP015420@godzilla.ics.uci.edu> Date: Sun, 10 Jan 2010 07:51:44 +0100 In-Reply-To: <201001092133.o09LXACP015420@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sat, 9 Jan 2010 13:33:10 -0800 (PST)") Message-ID: <87wrzqh2pr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Dan Nicolaescu writes: > Can handling as a remote file name be disabled? > The code path in question makes sense when the file is local, if the > file is remote, then just running the corresponding bzr command won't > make a difference. Adding "/:" at the top of the file name is one way. Another (maybe more common) is let-binding `file-name-handler-alist' to nil. OTOH, it might be that vc-bzr is handling a remote file. Directory names found in (remote) control files must be regarded remote as well. If they are just being used as arguments of processes, there is no problem. But if they are used in (for example) `file-exists-p', the file name must be extended by the remote component. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 09:32:40 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 14:32:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTyqN-0004F1-6P for submit@debbugs.gnu.org; Sun, 10 Jan 2010 09:32:39 -0500 Received: from mail.uni-ulm.de ([134.60.1.11]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTyVP-0003tV-DT for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 09:11:00 -0500 Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o0AEAr9a022591; Sun, 10 Jan 2010 15:10:53 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id DB2F513BAF; Sun, 10 Jan 2010 15:10:52 +0100 (CET) From: Reiner Steib To: Juanma Barranquero Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Followup-To: Juanma Barranquero , 5345@debbugs.gnu.org Date: Sun, 10 Jan 2010 15:10:50 +0100 In-Reply-To: (Juanma Barranquero's message of "Sat, 9 Jan 2010 21:08:58 +0100") Message-ID: <87ocl26oet.fsf@marauder.physik.uni-ulm.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 5345 X-Mailman-Approved-At: Sun, 10 Jan 2010 09:32:38 -0500 Cc: 5345@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Reiner Steib 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: -1.4 (-) On Sat, Jan 09 2010, Juanma Barranquero wrote: > According to RFC 1738 ("Uniform Resource Locators (URL)"), > section 3.10 ("FILES"), the syntax is > > file:/// > > i.e., the slashes are separators. And "[a]s a special case, can > be the string "localhost" or the empty string; this is interpreted as > `the machine from which the URL is being interpreted'.". So > file:///C:/path is a perfectly valid URL for a local file on Windows, > as a shorthand for file://localhost/C:/path. I'm surprised Unix URLs > for absolute paths do not start with file:////. I think the RFC assumes that the leading "/" is not part of the directory name, so file:/// with = localhost and = /etc/fstab (etc/fstab relative to /) becomes file:///etc/fstab just like /pub/README on ftp.gnu.org is written as ftp://ftp.gnu.org/pub/README and not ftp://ftp.gnu.org//pub/README ,----[ rfc1738 ] | 3.10 FILES | | The file URL scheme is used to designate files accessible on a | particular host computer. This scheme, unlike most other URL schemes, | does not designate a resource that is universally accessible over the | Internet. | | A file URL takes the form: | | file:/// | | where is the fully qualified domain name of the system on | which the is accessible, and is a hierarchical | directory path of the form //.../. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 12:48:54 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 17:48:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU1uI-0006eu-Fx for submit@debbugs.gnu.org; Sun, 10 Jan 2010 12:48:54 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU1u6-0006eZ-HX for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 12:48:52 -0500 Received: by fxm26 with SMTP id 26so18428068fxm.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 09:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=xnGtDisN4WzUQUMhxH5LORcTMXKM2bZl74HGzLK3dws=; b=L6/5oygE6xexlZUe7hvoh9A0caGAyZk8FHI+En+QWC/EBCH06au8M1luPBSnq4TBYy ogt8F5JJqZolX1cfOgrT2kumkkNJKAgCZrwToNJy8SL6O0F/9PQhpBf3zI8FWkXnSPbU aPcIfZ7dVxl32QBRxHM8H6jXJDV/GXe5KlA8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=u+JFpcqSUEvX9daz4kCIlu/8bRUdogDXcDBT8mcIGOPTGI0sl5k3Gl+PZcDQgExJai f/7hNdOBw1bVoAEbp7swpVvAkdtSdJtF1OOcN0Em8V+Q4gz41J729Z12tH8SpdipK9Cg sy9DE5A0udfP5+CLNER4uup/9c8/zOvhHOGHI= MIME-Version: 1.0 Received: by 10.239.193.18 with SMTP id g18mr3633973hbi.178.1263145715726; Sun, 10 Jan 2010 09:48:35 -0800 (PST) In-Reply-To: <87ocl26oet.fsf@marauder.physik.uni-ulm.de> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Lennart Borgman Date: Sun, 10 Jan 2010 18:48:15 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Reiner Steib , 5345@debbugs.gnu.org, Juanma Barranquero Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5345 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.5 (--) On Sun, Jan 10, 2010 at 3:10 PM, Reiner Steib w= rote: > On Sat, Jan 09 2010, Juanma Barranquero wrote: > >> According to RFC 1738 ("Uniform Resource Locators (URL)"), >> section 3.10 ("FILES"), the syntax is >> >> =C2=A0 =C2=A0 =C2=A0file:/// >> >> i.e., the slashes are separators. And "[a]s a special case, can >> be the string "localhost" or the empty string; this is interpreted as >> `the machine from which the URL is being interpreted'.". So >> file:///C:/path is a perfectly valid URL for a local file on Windows, >> as a shorthand for file://localhost/C:/path. I'm surprised Unix URLs >> for absolute paths do not start with file:////. > > I think the RFC assumes that the leading "/" is not part of the > directory name, so file:/// with =3D localhost and > =3D /etc/fstab (etc/fstab relative to /) becomes > file:///etc/fstab just like /pub/README on ftp.gnu.org is written as > ftp://ftp.gnu.org/pub/README and not ftp://ftp.gnu.org//pub/README That sounds like a plausible reading to me. Shouldn't this then mean that file://c:/some/file.txt is correct, but that file:///c:/bad/example.txt is wrong? > ,----[ rfc1738 ] > | 3.10 FILES > | > | =C2=A0 =C2=A0The file URL scheme is used to designate files accessible = on a > | =C2=A0 =C2=A0particular host computer. This scheme, unlike most other U= RL schemes, > | =C2=A0 =C2=A0does not designate a resource that is universally accessib= le over the > | =C2=A0 =C2=A0Internet. > | > | =C2=A0 =C2=A0A file URL takes the form: > | > | =C2=A0 =C2=A0 =C2=A0 =C2=A0file:/// > | > | =C2=A0 =C2=A0where is the fully qualified domain name of the sys= tem on > | =C2=A0 =C2=A0which the is accessible, and is a hierarchic= al > | =C2=A0 =C2=A0directory path of the form //.../. > `---- > > Bye, Reiner. > -- > =C2=A0 =C2=A0 =C2=A0 ,,, > =C2=A0 =C2=A0 =C2=A0(o o) > ---ooO-(_)-Ooo--- =C2=A0| =C2=A0PGP key available =C2=A0| =C2=A0http://rs= teib.home.pages.de/ > > > > > From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 12:52:28 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 17:52:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU1xj-0006iF-AF for submit@debbugs.gnu.org; Sun, 10 Jan 2010 12:52:27 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU1xi-0006i7-6s for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 12:52:26 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KW100700LEFNV00@a-mtaout20.012.net.il> for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 19:51:37 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.222.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KW1005A0LLZQ580@a-mtaout20.012.net.il>; Sun, 10 Jan 2010 19:51:37 +0200 (IST) Date: Sun, 10 Jan 2010 19:52:12 +0200 From: Eli Zaretskii Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout In-reply-to: <87wrzqh2pr.fsf@gmx.de> X-012-Sender: halo1@inter.net.il To: Michael Albinus , 5345@debbugs.gnu.org Message-id: <83my0l97ar.fsf@gnu.org> References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87637bhtep.fsf@gmx.de> <201001092133.o09LXACP015420@godzilla.ics.uci.edu> <87wrzqh2pr.fsf@gmx.de> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5345 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii 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.0 (--) > From: Michael Albinus > Date: Sun, 10 Jan 2010 07:51:44 +0100 > Cc: 5345@debbugs.gnu.org > > Dan Nicolaescu writes: > > > Can handling as a remote file name be disabled? > > The code path in question makes sense when the file is local, if the > > file is remote, then just running the corresponding bzr command won't > > make a difference. > > Adding "/:" at the top of the file name is one way. Another (maybe more > common) is let-binding `file-name-handler-alist' to nil. But the latter is too gross, isn't it? `file-name-handler-alist' could hold anything, not just handlers for remote files. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 14:08:01 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 19:08:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU38q-0007ft-AF for submit@debbugs.gnu.org; Sun, 10 Jan 2010 14:08:00 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NU38l-0007fn-Va for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 14:07:58 -0500 Received: (qmail invoked by alias); 10 Jan 2010 19:07:46 -0000 Received: from unknown (EHLO detlef.local) [79.192.11.20] by mail.gmx.net (mp043) with SMTP; 10 Jan 2010 20:07:46 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX192ZrAoySR2pvkZW9izY4y1nK31r8jf9g4R+OyGT6 H+qq8y8mfR2kq+ From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <87eilzio5b.fsf@gmx.de> <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87637bhtep.fsf@gmx.de> <201001092133.o09LXACP015420@godzilla.ics.uci.edu> <87wrzqh2pr.fsf@gmx.de> <83my0l97ar.fsf@gnu.org> Date: Sun, 10 Jan 2010 20:07:37 +0100 In-Reply-To: <83my0l97ar.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Jan 2010 19:52:12 +0200") Message-ID: <87k4vphj7q.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@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.6 (--) Eli Zaretskii writes: >> > Can handling as a remote file name be disabled? >> > The code path in question makes sense when the file is local, if the >> > file is remote, then just running the corresponding bzr command won't >> > make a difference. >> >> Adding "/:" at the top of the file name is one way. Another (maybe more >> common) is let-binding `file-name-handler-alist' to nil. > > But the latter is too gross, isn't it? `file-name-handler-alist' > could hold anything, not just handlers for remote files. You do it only when you are sure it does not hurt. Wrapping a call to `file-exists-p', for example. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 14:28:27 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 19:28:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU3Sc-0007wt-Ng for submit@debbugs.gnu.org; Sun, 10 Jan 2010 14:28:26 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU3Sa-0007wo-9W for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 14:28:24 -0500 Received: by bwz8 with SMTP id 8so13459657bwz.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 11:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=un2nYkVduOo1vmlJqyUDIMqQ2LT7jeDN8e73pvyN0Ng=; b=l9LVIP3XDjkZ6Y2POv3+tk+aeOzcz/XBWXHRTIvmgu3SRNa1JtWQ1CGB3iC64RDudx 1S+E4MWhXfB3ImHRLJi/CmTmUK6s+gP5sWk25pCrgNf7yLzdbRsxJzOwBfqrB+2gr/cD 9RzKLgNCj57Cp8KZuYmxlb1nD8OZ1U8Rs34Vs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UU1zL3J8GtsmlAPxHYBFrjLJi7gphNAoa1b/z1NB2ShvB5R5WWnP3l9bx2J9e+VU4o QmG2NMT5WUBcg+TeTAI1sZB+oFSYrxDNrtQX4yk5+X10bUPHMiHVsiEDMI0ve/CBN+pO DrguUMsfrgwSw9YbAXKszkA9V1uVUlSJoryTE= MIME-Version: 1.0 Received: by 10.204.25.132 with SMTP id z4mr1425702bkb.131.1263151699109; Sun, 10 Jan 2010 11:28:19 -0800 (PST) In-Reply-To: References: <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Juanma Barranquero Date: Sun, 10 Jan 2010 20:27:59 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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 (--) On Sun, Jan 10, 2010 at 18:48, Lennart Borgman wrote: > That sounds like a plausible reading to me. Shouldn't this then mean > that file://c:/some/file.txt is correct, but that > file:///c:/bad/example.txt is wrong? Reading that how, exactly? Juanma From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 14:41:13 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 19:41:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU3ez-0008BD-An for submit@debbugs.gnu.org; Sun, 10 Jan 2010 14:41:13 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU3ex-0008An-39 for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 14:41:11 -0500 Received: by fxm26 with SMTP id 26so18485311fxm.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 11:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=5QbUMWlNNjgUOm9KUyeSebsHwzIh52WM0urBwuvijcs=; b=IHIuMMneO6Y2SFNbvNv37jPZJkCHYFW48qNW2ZZrI+zVOX9ae30eZmX2f8Wp0b6WTA D0cACXwfKnniL7wk8TmHun6n/g1L5PBc5tLojtPfxVGO59eqeK6L604Wja2rQ+QJ/wo2 QLEYB0uBVFfAOxozCI7e0FoKA/xqNGqtFWylI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=oDoBCz4ko+cZQ/PUxgwTltc/zmT4e8O2LXKo4rFz7hs9Y36J6qdFGw7Xl5pG+UNIqd CDSREfx1i1x4T1X1q+ch1cHNPvx2XNDN3sZhJGZs8fR7wLmt9vSiZDJqZGYTdQBM3hSm GTu1iAj67uHMIRUXTdpWfW3NzIEU7WD4h4mbk= MIME-Version: 1.0 Received: by 10.239.139.154 with SMTP id t26mr793493hbt.74.1263152466114; Sun, 10 Jan 2010 11:41:06 -0800 (PST) In-Reply-To: References: <83vdfb8jxa.fsf@gnu.org> <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Lennart Borgman Date: Sun, 10 Jan 2010 20:40:46 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Juanma Barranquero Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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.6 (--) On Sun, Jan 10, 2010 at 8:27 PM, Juanma Barranquero wrote: > On Sun, Jan 10, 2010 at 18:48, Lennart Borgman > wrote: > >> That sounds like a plausible reading to me. Shouldn't this then mean >> that file://c:/some/file.txt is correct, but that >> file:///c:/bad/example.txt is wrong? > > Reading that how, exactly? It is more like a sound ;-) Reiner whispered that was collapsed to nothing when the url was local, ie a local file here. Then we get file:///some/file.txt on un*xes, but on w32 we get the first case above. There is no way to get the second case on w32 if Reiners suggestion for reading is correct (and I am not mistaken...) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 15:07:00 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 20:07:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU43v-00005k-UG for submit@debbugs.gnu.org; Sun, 10 Jan 2010 15:07:00 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU43t-00005c-PF for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 15:06:58 -0500 Received: by bwz8 with SMTP id 8so13473544bwz.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 12:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=72i9jbiVE64SvAQy8G/HMCqEPWaEocnou1lvF0YPrHs=; b=M8Ho/9wVIbv+Kh2wndxlVnZbtq5StqSFY/C5pMptcfE2UBCPSY7JfoO2vCddqhbTP0 J+pbpDlWIGEoqtaCCEx28ZPsOuLAKmHmO8sCf7s9w2Zvk+joLZ+GiyU6ooFtYWiszVj0 H384+kVskoSyMIKoRWNSujjhnH5QoiYXYTBgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Rqw/EIjG6nvqPNjPswKxuXMZwcxUgn/dO/4j86zwnCFtkFyRHICzWoF91ur67Cd7WB +BCk0gK6qA8bzpzr+B6rNs8tvknwUISa8jJtxtBtUyclZ+54zu5eUTXlWd+SRHX4OFyo WDl1eJkvz+DtpdS4wQwvDgx4+0N8BGztwbcsM= MIME-Version: 1.0 Received: by 10.204.25.132 with SMTP id z4mr1449410bkb.131.1263154011641; Sun, 10 Jan 2010 12:06:51 -0800 (PST) In-Reply-To: References: <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Juanma Barranquero Date: Sun, 10 Jan 2010 21:06:31 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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 (--) > Reiner whispered that was collapsed to nothing when the url was > local, ie a local file here. No, he didn't "whisper" nothing like that. He said that he thinks that the RFC assumes that the path does not start with a slash. > There is no way to get > the second case on w32 if Reiners suggestion for reading is correct > (and I am not mistaken...) I think you are. Juanma From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 15:10:55 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 20:10:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU47i-00008p-OS for submit@debbugs.gnu.org; Sun, 10 Jan 2010 15:10:54 -0500 Received: from fg-out-1718.google.com ([72.14.220.159]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU47h-00008j-13 for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 15:10:53 -0500 Received: by fg-out-1718.google.com with SMTP id 22so7185112fge.15 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 12:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=HeI4WdZYZ6CGpJI4JWFW2vmWYF9Wl8Dz/nij76tvF5k=; b=PFom+oV9Vnh1PjuSjXXtnfb5auS13NGd17/08jyUTeSdeH1kZcPz9wC/Jfxmgr5rqb RnsEfuo71uX0C3ql7f8pmwoOCwbwnyN74mpJv5o/D7K8EjjnQmDyitP8sOwK23hA+38m SOG+iS9Z11HfgoFmqA94yeDip4o4uA4Wq0q88= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=lfcHKHqVo2RUXV7eW4MFbvSJ8oIeTWk+z1STQClmoQHtU56F+o0tOBSUKcw569QNvW QRU9VUKHq9lQnnowSILGWMEB8K6+AOBqrKyWFRo5R3GY6Dain8C7f1LPFyM1p+DkG0Sy tjJnPt3wHfZjokrFiqV+ZlTF3s5wFhIlwoUo0= MIME-Version: 1.0 Received: by 10.239.186.193 with SMTP id i1mr330189hbh.91.1263154248130; Sun, 10 Jan 2010 12:10:48 -0800 (PST) In-Reply-To: References: <201001091846.o09Ikv1G009474@godzilla.ics.uci.edu> <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Lennart Borgman Date: Sun, 10 Jan 2010 21:10:28 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Juanma Barranquero Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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.6 (--) On Sun, Jan 10, 2010 at 9:06 PM, Juanma Barranquero wrote: >> Reiner whispered that was collapsed to nothing when the url was >> local, ie a local file here. > > No, he didn't "whisper" nothing like that. Hm. Are you sure? > He said that he thinks that > the RFC assumes that the path does not start with a slash. Yes. >> There is no way to get >> the second case on w32 if Reiners suggestion for reading is correct >> (and I am not mistaken...) > > I think you are. Please explain. How do you get file:/// on w32? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 15:22:15 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 20:22:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU4Ig-0000Jb-8g for submit@debbugs.gnu.org; Sun, 10 Jan 2010 15:22:14 -0500 Received: from mail-bw0-f216.google.com ([209.85.218.216]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU4Ie-0000JU-IC for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 15:22:13 -0500 Received: by bwz8 with SMTP id 8so13478768bwz.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 12:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=1oG1hp1J3qTbfshbubORJo4tkZJnaIcK7kNCpOmdC0o=; b=TAN8KGIW4G1EKWn5nWlTEPxgbzRJ/I2VeBFPCOAxbAgJVFhOWAbaMvIajPP1m4EERa 5OmiMsyjVvZZV0fJzvzYBic2XP8qHi83SoJ+OOPVHTidvktWm9+YV3AqAtk92a9BAIO1 olXsgY+MFRb4CO0okvd8NbJy73qdBXJl3kI+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=lp0L0gdx0rTPELmUebugVFH0EsZVj8yDXUIQ3GurEOAq1l6B80eb1h4nGV8W/qcDUn 4uW6bq5tXN0EJYaQ5iNNTcYt08cyq/f8sELaonn8XSP0kZGWZ2lnCoIilGJIdQ8OetPo AmSKNA4XMvka3jBDki42XnEkNZSnplcs6wVmA= MIME-Version: 1.0 Received: by 10.204.148.82 with SMTP id o18mr738459bkv.188.1263154927308; Sun, 10 Jan 2010 12:22:07 -0800 (PST) In-Reply-To: References: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Juanma Barranquero Date: Sun, 10 Jan 2010 21:21:47 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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 (--) On Sun, Jan 10, 2010 at 21:10, Lennart Borgman wrote: > Hm. Are you sure? No. Are you sure that he did? > I think the RFC assumes that the leading "/" is not part of the > directory name, so file:/// with = localhost and > = /etc/fstab (etc/fstab relative to /) I certainly read that as written: the leading / is not part of the filename. >> He said that he thinks that >> the RFC assumes that the path does not start with a slash. > > Yes. Then, what are we discussing? > Please explain. How do you get file:/// on w32? Using the same interpretation (though I'm not sure I agree with it): the absolute filename does not start with a slash. Surely you don't want to remove C from C:/my/path? BTW, please take a look at http://en.wikipedia.org/wiki/File_URI_scheme (even if you don't trust the Wikipedia, the entry is quite informative). Juanma From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 15:36:09 2010 Received: (at 5345) by debbugs.gnu.org; 10 Jan 2010 20:36:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU4W8-0000UB-Nh for submit@debbugs.gnu.org; Sun, 10 Jan 2010 15:36:08 -0500 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NU4W6-0000Tm-Ht for 5345@debbugs.gnu.org; Sun, 10 Jan 2010 15:36:07 -0500 Received: by fxm26 with SMTP id 26so18512966fxm.39 for <5345@debbugs.gnu.org>; Sun, 10 Jan 2010 12:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=8wDRpHU6Q2aClYsYCu8JMNGha0oWFUjOS1XNSLlBhKQ=; b=pYx7i3r5DZGXf6cNeC/rgOVaEgwt0/Zah5a3Cu/XuaqvWftDv2S50A2nm7+dzQuL+X AEZMvbJ7zq01sA1NbrIOC6pKx3wS+Lz9REsMepXy26m/DLs1kF9LArZSvIwLyurkOdKW vZC2BP+wu8WLR204EVlNWuj2DKiIdv8X8iKbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HPCdcR1FjeZhq2ZazcCQLiayhYAZffErM9mxafNhz3SvGH3pS0qIr2DQIGenZuAsWE /VbLjG/Oft5eJ7Ue7eHhTVdbp1xhub/mHzignDUY/u4b/np2sZn2+PC6YPaeuWTa+1Kk KJChw4s4QzRr2JshixgBBua5j1EPWHG3OVdeE= MIME-Version: 1.0 Received: by 10.239.192.79 with SMTP id d15mr803529hbi.52.1263155761237; Sun, 10 Jan 2010 12:36:01 -0800 (PST) In-Reply-To: References: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> From: Lennart Borgman Date: Sun, 10 Jan 2010 21:35:41 +0100 Message-ID: Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout To: Juanma Barranquero Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5345 Cc: 5345@debbugs.gnu.org, Reiner Steib 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.6 (--) On Sun, Jan 10, 2010 at 9:21 PM, Juanma Barranquero wrot= e: > On Sun, Jan 10, 2010 at 21:10, Lennart Borgman > wrote: > >> Hm. Are you sure? > > No. Are you sure that he did? Ehum. Yes. But it does not matter. >> I think the RFC assumes that the leading "/" is not part of the >> directory name, so file:/// with =3D localhost and >> =3D /etc/fstab (etc/fstab relative to /) > > I certainly read that as written: the leading / is not part of the filena= me. > >>> He said that he thinks that >>> the RFC assumes that the path does not start with a slash. >> >> Yes. > > Then, what are we discussing? > >> Please explain. How do you get file:/// on w32? > > Using the same interpretation (though I'm not sure I agree with it): > the absolute filename does not start with a slash. Surely you don't > want to remove C from C:/my/path? > > BTW, please take a look at > http://en.wikipedia.org/wiki/File_URI_scheme =C2=A0(even if you don't tru= st > the Wikipedia, the entry is quite informative). Ah, I see what you mean. I still suspect Reiners interpretation is the same as the one the confused specs, but it does not work on w32 (as you also said). From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 12 13:32:13 2010 Received: (at 5345) by debbugs.gnu.org; 12 Jan 2010 18:32:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUlXH-0002rS-7I for submit@debbugs.gnu.org; Tue, 12 Jan 2010 13:32:13 -0500 Received: from mail.uni-ulm.de ([134.60.1.11]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUlBG-0002Ys-HN for 5345@debbugs.gnu.org; Tue, 12 Jan 2010 13:09:27 -0500 Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o0CI9KRG009725; Tue, 12 Jan 2010 19:09:20 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 536CB13B86; Tue, 12 Jan 2010 19:09:20 +0100 (CET) From: Reiner Steib To: Lennart Borgman Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout References: <201001091920.o09JKqPp010697@godzilla.ics.uci.edu> <87ocl26oet.fsf@marauder.physik.uni-ulm.de> X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY; Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m, tWj]&}, qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi, +g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Followup-To: Lennart Borgman , 5345@debbugs.gnu.org Date: Tue, 12 Jan 2010 19:09:16 +0100 In-Reply-To: (Lennart Borgman's message of "Sun, 10 Jan 2010 21:35:41 +0100") Message-ID: <87k4vn42lv.fsf@marauder.physik.uni-ulm.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-DCC-CTc-dcc1-Metrics: poseidon 1030; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.uni-ulm.de id o0CI9KRG009725 X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 5345 X-Mailman-Approved-At: Tue, 12 Jan 2010 13:32:10 -0500 Cc: 5345@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Reiner Steib 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: -1.6 (-) On Sun, Jan 10 2010, Lennart Borgman wrote: > On Sun, Jan 10, 2010 at 9:21 PM, Juanma Barranquero = wrote: >> BTW, please take a look at >> http://en.wikipedia.org/wiki/File_URI_scheme =A0(even if you don't tru= st >> the Wikipedia, the entry is quite informative). > > Ah, I see what you mean. I still suspect Reiners interpretation is the > same as the one the confused specs, but it does not work on w32 (as > you also said). Well the relative path (starting from the "top level") for /etc/fstab is etc/fstab, whereas the one for c:/autoexec.bat is c:/autoexec.bat (not autoexec.bat nor :/autoexec.bat nor /autoexec.bat). Omitting the drive make no sense on windows. Omitting the "/" separator (/) also makes no sense, because it would be ambiguous ... E.g. host =3D sti, c:/k --> ftp://sti/c:/k.txt --> ftp://stic:/k.txt --> huch? host =3D stic, port =3D emtpy, path =3D= k.txt? BTW: RFC 1738 is superseded by RFC 2396 and the latter by RFC 3986 (STD 66). (I didn't read them, though :-)) Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ From unknown Tue Jun 17 01:49:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator