Package: radicale
Version: 0.7-1.1
Severity: important
Tags: patch

Dear Maintainer,

it is not possible to sync android contacts using Carddav-Sync
https://play.google.com/store/apps/details?id=org.dmfs.carddav.sync&hl=de
to a radicale server. The android app connects to the radicale server, 
but does not store any contacts. In contrast to this, it is possible to 
sync from icedove using the sogo carddav connector
(xul-ext-sogo-connector). This is a known problem and fixed in
https://github.com/Kozea/Radicale/commit/ea94ec919e4415b6d65b5ea9a5f5556e3c288637
Please include the fix in the package.
Description: Use the right namespace for adressbook tags
Origin: upstream, https://github.com/Kozea/Radicale/commit/ea94ec919e4415b6d65b5ea9a5f5556e3c288637
Last-Update: 2012-06-28
--- a/xmlutils.py
+++ b/xmlutils.py
@@ -289,6 +289,14 @@
                 if not item.exists and item.resource_type:
                     # Collection not stored yet, but guessed resource type
                     tag = ET.Element(_tag("C", item.resource_type))
+                if item.is_leaf(item.path) or (
+                        not item.exists and item.resource_type):
+                    # 2nd case happens when the collection is not stored yet,
+                    # but the resource type is guessed
+                    if item.resource_type == "addressbook":
+                        tag = ET.Element(_tag("CR", item.resource_type))
+                    else:
+                        tag = ET.Element(_tag("C", item.resource_type))
                     element.append(tag)
                 tag = ET.Element(_tag("D", "collection"))
                 element.append(tag)

Reply via email to