{"action":"created","issue":{"url":"https://api.github.com/repos/bitfireAT/davdroid/issues/482","labels_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/482/comments","events_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/482/events","html_url":"https://github.com/bitfireAT/davdroid/issues/482","id":69293423,"number":482,"title":"contact sync gets confused by UID field","user":{"login":"smoebody","id":991327,"avatar_url":"https://avatars.githubusercontent.com/u/991327?v=3","gravatar_id":"","url":"https://api.github.com/users/smoebody","html_url":"https://github.com/smoebody","followers_url":"https://api.github.com/users/smoebody/followers","following_url":"https://api.github.com/users/smoebody/following{/other_user}","gists_url":"https://api.github.com/users/smoebody/gists{/gist_id}","starred_url":"https://api.github.com/users/smoebody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smoebody/subscriptions","organizations_url":"https://api.github.com/users/smoebody/orgs","repos_url":"https://api.github.com/users/smoebody/repos","events_url":"https://api.github.com/users/smoebody/events{/privacy}","received_events_url":"https://api.github.com/users/smoebody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitfireAT/davdroid/labels/need%20info","name":"need info","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-18T10:07:37Z","updated_at":"2015-04-22T08:43:18Z","closed_at":null,"body":"in my case the uid of a contact contains old remains of former carddav servers i used (davical). the *UID* of my contact contains the url of that servers. davdroid somehow parses that url for some reason and fails sync (maybe because that servers dont exist anymore). here is the log:\r\n````\r\nI/davdroid.DavSyncAdapter(21906): Performing sync for authority com.android.contacts\r\nD/davdroid.DavSyncAdapter(21906): Creating new DavHttpClient\r\nI/davdroid.DavHttpClient(21906): Wire logging active, disabling HTTP compression\r\nD/davdroid.DavSyncAdapter(21906): Server supports VCard version 3.0\r\nV/davdroid.URIUtils(21906): Normalized URL https://oc.metaccount.de/remote.php/carddav/addressbooks/smoe/contacts/ -> https://oc.metaccount.de/remote.php/carddav/addressbooks/smoe/contacts/\r\nD/davdroid.WebDavResource(21906): Using preemptive authentication (not compatible with Digest auth)\r\nI/davdroid.SyncManager(21906): Remotely removing 0 deleted resource(s) (if not changed)\r\nI/davdroid.SyncManager(21906): Uploading 0 new resource(s) (if not existing)\r\nI/davdroid.SyncManager(21906): Uploading 2 modified resource(s) (if not changed)\r\nD/davdroid.LocalAddressBook(21906): Populating group from sourceid=? AND deleted=0 Familie\r\nV/davdroid.URIUtils(21906): Normalized URL https%3A%2F%2Fsmoe%2540geruechtekueche.de%40cal.geruechtekueche.de%2Fsmoe%2540geruechtekueche.de%2Fadressen%2F592DA267-54FD6CDF-35723803.vcf.vcf -> https://smoe%2540geruechtekueche.de@cal.geruechtekueche.de/smoe%2540geruechtekueche.de/adressen/592DA267-54FD6CDF-35723803.vcf.vcf\r\nW/davdroid.Contact(21906): Created potentially invalid VCard! [Email] | W09: TYPE parameter value (\"home\") is not supported by this property in this vCard version.\r\nD/HttpClient(21906): Connection request: [route: HttpRoute[{s}->https://cal.geruechtekueche.de:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]\r\nD/HttpClient(21906): Connection leased: [id: 2][route: HttpRoute[{s}->https://cal.geruechtekueche.de:443]][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 3]\r\nD/HttpClient(21906): Opening connection HttpRoute[{s}->https://cal.geruechtekueche.de:443]\r\nD/HttpClient(21906): http-outgoing-2: Shutdown connection\r\nD/HttpClient(21906): Connection discarded\r\nD/HttpClient(21906): http-outgoing-2: Close connection\r\nD/HttpClient(21906): Connection released: [id: 2][route: HttpRoute[{s}->https://cal.geruechtekueche.de:443]][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 3]\r\nE/davdroid.DavSyncAdapter(21906): I/O error (Android will try again later)\r\nI/davdroid.DavSyncAdapter(21906): Sync complete for com.android.contacts\r\nD/davdroid.DavSyncAdapter(21906): Closing httpClient\r\nD/HttpClient(21906): Connection manager is shutting down\r\nD/HttpClient(21906): Connection manager shut down\r\nE/ExternalAccountType(10394): Unsupported attribute readOnly\r\n````\r\n\r\nthe correct carddav server url is https://oc.metaccount.de/remote.php/carddav which is an owncloud 8 service.\r\n\r\nthe old one (davical) is https://cal.geruechtekueche.de:443 which only appears in the *UID* field of most of my contacts (since i imported them from davical). the *UID* looks like this:\r\n````\r\nUID:https://smoe@oc.metaccount.de/remote.php/carddav/addressbooks/smoe/cont\r\n acts/https%253A%252F%252Fsmoe%252540geruechtekueche.de%2540cal.geruechteku\r\n eche.de%252Fsmoe%252540geruechtekueche.de%252Fadressen%252F592DA267-54FD6C\r\n DF-35723803.vcf.vcf\r\n````"},"comment":{"url":"https://api.github.com/repos/bitfireAT/davdroid/issues/comments/95079378","html_url":"https://github.com/bitfireAT/davdroid/issues/482#issuecomment-95079378","issue_url":"https://api.github.com/repos/bitfireAT/davdroid/issues/482","id":95079378,"user":{"login":"rfc2822","id":156167,"avatar_url":"https://avatars.githubusercontent.com/u/156167?v=3","gravatar_id":"","url":"https://api.github.com/users/rfc2822","html_url":"https://github.com/rfc2822","followers_url":"https://api.github.com/users/rfc2822/followers","following_url":"https://api.github.com/users/rfc2822/following{/other_user}","gists_url":"https://api.github.com/users/rfc2822/gists{/gist_id}","starred_url":"https://api.github.com/users/rfc2822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfc2822/subscriptions","organizations_url":"https://api.github.com/users/rfc2822/orgs","repos_url":"https://api.github.com/users/rfc2822/repos","events_url":"https://api.github.com/users/rfc2822/events{/privacy}","received_events_url":"https://api.github.com/users/rfc2822/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T08:43:18Z","updated_at":"2015-04-22T08:43:18Z","body":"> can you explain why davdroid is using the url from the UID?\r\n\r\nOk, now I understand your problem. DAVdroid should never use the URL from your UID and I can't imagine that it does. So you do only have a DAVdroid account on your device that you have setup with https://oc.metaccount.de/remote.php/carddav as URL?"}}