From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Diane Murray Newsgroups: gmane.emacs.devel Subject: url-auth error when URL has no path Date: Fri, 12 Oct 2007 05:14:54 +0200 Message-ID: <87ve9d3txt.fsf@spargel.x3y2z1.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1192158867 27337 80.91.229.12 (12 Oct 2007 03:14:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 03:14:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 12 05:14:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IgAy1-0008D6-25 for ged-emacs-devel@m.gmane.org; Fri, 12 Oct 2007 05:13:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgAxu-0007Ui-Jl for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 23:13:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgAxr-0007Sb-Jw for emacs-devel@gnu.org; Thu, 11 Oct 2007 23:13:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgAxp-0007QV-4L for emacs-devel@gnu.org; Thu, 11 Oct 2007 23:13:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgAxo-0007QL-Tv for emacs-devel@gnu.org; Thu, 11 Oct 2007 23:13:24 -0400 Original-Received: from mailout08.sul.t-online.de ([194.25.134.20] helo=mailout08.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgAxo-00085a-Lj for emacs-devel@gnu.org; Thu, 11 Oct 2007 23:13:24 -0400 Original-Received: from fwd31.aul.t-online.de by mailout08.aul.t-online.de with smtp id 1IgAxm-0001bE-00; Fri, 12 Oct 2007 05:13:22 +0200 Original-Received: from spargel.x3y2z1.net (Xp7XU6ZOZhQ9FCBUcg15XsDqDIOG++9QJvvwJn2v+pQ7U8mDoHstcNnRnkkb67oQVo@[84.189.234.240]) by fwd31.aul.t-online.de with esmtp id 1IgAxY-0W0Xxo0; Fri, 12 Oct 2007 05:13:08 +0200 X-ID: Xp7XU6ZOZhQ9FCBUcg15XsDqDIOG++9QJvvwJn2v+pQ7U8mDoHstcNnRnkkb67oQVo@t-dialin.net X-TOI-MSGID: 2350a5ee-9191-473c-9db9-19bff8759cee X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80692 Archived-At: An error occurs when trying to retrieve an http URL with a host but no path (no trailing slash) after a successful authentication was made on the host, including a path, earlier in the session. The following patch deals with this. 2007-10-12 Diane Murray * url-auth.el (url-basic-auth): Set path to "/" when URL has an empty string filename. *** url-auth.el 10 Aug 2007 18:46:27 +0200 1.13.2.3 --- url-auth.el 12 Oct 2007 01:40:25 +0200 *************** *** 74,79 **** --- 74,80 ---- (setq server (format "%s:%d" server port) path (cond (realm realm) + ((string= "" path) "/") ((string-match "/$" path) path) (t (url-basepath path))) byserv (cdr-safe (assoc server