From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: url-dav and Radicale Date: Sun, 1 May 2016 16:23:49 +0600 Message-ID: References: <874maip2iz.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462098304 763 80.91.229.3 (1 May 2016 10:25:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 May 2016 10:25:04 +0000 (UTC) Cc: Emacs developers To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 01 12:25:03 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awoYg-00087m-JP for ged-emacs-devel@m.gmane.org; Sun, 01 May 2016 12:25:02 +0200 Original-Received: from localhost ([::1]:32836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awoYc-000105-BL for ged-emacs-devel@m.gmane.org; Sun, 01 May 2016 06:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awoYK-0000nL-6w for emacs-devel@gnu.org; Sun, 01 May 2016 06:24:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awoY8-0002i1-FL for emacs-devel@gnu.org; Sun, 01 May 2016 06:24:34 -0400 Original-Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:34386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awoY7-0002ek-4N for emacs-devel@gnu.org; Sun, 01 May 2016 06:24:28 -0400 Original-Received: by mail-lf0-x22c.google.com with SMTP id m64so7518249lfd.1 for ; Sun, 01 May 2016 03:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=xi8HyRqc/6tg3+H4T29wcK4SjBQ/HerfkB5CG7kesjw=; b=NpbhQkoEMr0ExvUR1cYHYQaeM3oGbR1zKMayciWJW+g39fsTOHUQCYVfMFWzj6D8hu pGFPz7MoqbvS9IWdxWYj5WsrhYcv1kAxlYchpSrIFeyMbAzod6+/S8q4uN/wqDpomYf2 J27QD43X56qFhcgHMvAk0u83Hzx4rZAMi11dlgfQII9wnmQh7jmsBA/o6KlFBNHFUgSe ab/5K+OJOVI0s3eNXA9fpU01XZhBhH4jT8EnUaBkm5HJfqkIVboQSydUb9iSGolwRPM4 +BjgFQ4CMwNN0hFBDxjuwBLkUg9Do+yibQNNpyDJyHMh4Df4wCzCAq7KVTif74cuWNwu FY6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=xi8HyRqc/6tg3+H4T29wcK4SjBQ/HerfkB5CG7kesjw=; b=nHCpGsWncee09a7hVVjkUE6PC4Uz0bUi0sROwPEdt1/6AXNhWnErD0OmFq2W0lwIQS GhIsHHwOQPu30Eg9y0srR27pixSFPUBfZ4C3BZ+csWDjqnBcYEl+faMfpadYiEzGTTpl 4/QE0TgVeITrdVHoLBjreADOfy/vB2CB9iqNmCGhzAQZxzsV9e18jyN+JAiFjmWoLetT xV+Q2TTvT/c+xAS9y5QmzXPrLV1AfnTS4jqcOCQ0IGQUO51mytOL5a+MlnrIQn1Nk4oG D+FNnuR+5G5JKpNvv25Hnexug5fL3w2VSQJVtdp1LkklirBUBeJ1J8qyUscHZKJPz5KC D1Bw== X-Gm-Message-State: AOPr4FWCfeKoIzvRuaK5AUTNLBKxP4uZ+c3Gp9MXweB1lZz6FnYEJJpvSo5XtutaVUDAvRoYQ1bewf+qztEXpA== X-Received: by 10.25.28.66 with SMTP id c63mr10888086lfc.79.1462098248802; Sun, 01 May 2016 03:24:08 -0700 (PDT) Original-Received: by 10.112.172.197 with HTTP; Sun, 1 May 2016 03:23:49 -0700 (PDT) In-Reply-To: <874maip2iz.fsf@ericabrahamsen.net> X-Google-Sender-Auth: 6qt8k5b4MVM90NtRkx34CSGWA1k X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203475 Archived-At: On Sun, May 1, 2016 at 3:10 PM, Eric Abrahamsen w= rote: > In a nutshell, Emacs' url-dav.el library, when parsing responses from a > DAV server, assumes XML node names that are all prefixed with "DAV:". > Ie, "DAV:multistatus". As far as I can see, url-dav-process-response calls xml-parse-region with the last argument set to 'symbol-qnames, which does the right thing for non-default XML namespace prefixes whose URI is "DAV:". Here: M-: (xml-parse-region nil nil nil nil 'symbol-qnames) =E2=87=92 ((DAV:multistatus ((... . "DAV:")) " ")) However it does not handle the default namespace for me: M-: (xml-parse-region nil nil nil nil 'symbol-qnames) =E2=87=92 ((multistatus ((http://www\.w3\.org/2000/xmlns/xmlns . "DAV:")) " ")) That=E2=80=99s a bug in xml.el. > Radicale, on the other hand, just sends back "multistatus" Does it also send an xmlns=3D"DAV:" on that element?