Thanks for the update!
Problem with uploading new/changed contacts to egroupware
-
Hi,
DAVdroid do not want to upload new or changed contact to egroupware. Download worked fine until I added a new contact in my phone. But now it stopped working correctly. By using cardDAV by em Client on my PC upload with same credentials work without any problems.
Best regards
DudditsLog is below
SYNCHRONIZATION INFO Synchronization phase: 4 Account name: ME@MYDOMAIN.TLD Authority: com.android.contacts HTTP REQUEST: PUT /egroupware/groupdav.php/ME/addressbook/05c41f2f-7159-43c9-acca-820673e47e7f.vcf If-None-Match: * BEGIN:VCARD[CR][LF] VERSION:3.0[CR][LF] PRODID:+//IDN bitfire.at//DAVdroid/1.3.3.1-gplay1 vcard4android ez-vcard/0.[CR][LF] 10.0[CR][LF] UID:05c41f2f-7159-43c9-acca-820673e47e7f[CR][LF] FN:5500[CR][LF] N:[CR][LF] TEL;TYPE=cell:5500[CR][LF] TEL;TYPE=x-assistant:+491522551992994[CR][LF] REV:2016-10-24T16:20:43Z[CR][LF] END:VCARD[CR][LF] HTTP RESPONSE: http/1.1 403 Forbidden Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection: Keep-Alive Content-Length: 0 Content-Type: text/html; charset=utf-8 Date: Mon, 24 Oct 2016 16:20:43 GMT Expires: Thu, 19 Nov 1981 08:52:00 GMT Keep-Alive: timeout=5, max=99 Pragma: no-cache Server: Apache/2.4.10 (Debian) X-Dav-Powered-By: EGroupware 16.1.003 CalDAV/CardDAV/GroupDAV server X-WebDAV-Status: 403 Forbidden EXCEPTION: at.bitfire.dav4android.exception.HttpException: 403 Forbidden at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:318) at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:291) at at.bitfire.dav4android.DavResource.put(DavResource.java:202) at at.bitfire.davdroid.syncadapter.SyncManager.uploadDirty(SyncManager.java:314) at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.java:147) at at.bitfire.davdroid.syncadapter.ContactsSyncAdapterService$ContactsSyncAdapter.sync(ContactsSyncAdapterService.java:64) at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.java:85) at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272) SOFTWARE INFORMATION Package: at.bitfire.davdroid Version: 1.3.3.1-gplay1 (126) Sat Oct 22 16:09:18 GMT+02:00 2016 Installed from: com.android.vending JB Workaround installed: no CONFIGURATION System-wide synchronization: automatically Account: ME@MYDOMAIN.TLD Address book sync. interval: 240 min Calendar sync. interval: 240 min OpenTasks sync. interval: 240 min WiFi only: false [CardDAV] Contact group method: GROUP_VCARDS [CalDAV] Time range (past days): 90 Manage calendar colors: true SQLITE DUMP android_metadata | locale | | de_DE | ---------- settings | setting | value | | logToExternalStorage | 0 | ---------- services | _id | accountName | service | principal | | 3 | ME@MYDOMAIN.TLD | carddav | https://MYDOMAIN.TLD/egroupware/groupdav.php/principals/users/ME/ | | 4 | ME@MYDOMAIN.TLD | caldav | https://MYDOMAIN.TLD/egroupware/groupdav.php/principals/users/ME/ | ---------- sqlite_sequence | name | seq | | services | 4 | | homesets | 13 | | collections | 24 | ---------- homesets | _id | serviceID | url | | 8 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/ | | 9 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/Default/ | | 12 | 3 | https://MYDOMAIN.TLD/egroupware/groupdav.php/Default/ | | 13 | 3 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/ | ---------- collections | _id | serviceID | url | readOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | sync | | 14 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/infolog/ | 0 | InfoLog MY NAME | Tasks of MY NAME | <null> | <null> | 0 | 1 | 0 | | 15 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/calendar/ | 0 | Kalender MY NAME | MY NAME | <null> | <null> | 1 | 0 | 1 | | 16 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/calendar-Default/ | 1 | Kalender Gruppe Default | Gruppe Default | <null> | <null> | 1 | 0 | 0 | | 17 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/Default/infolog/ | 1 | InfoLog Gruppe Default | Tasks of Gruppe Default | <null> | <null> | 0 | 1 | 1 | | 18 | 4 | https://MYDOMAIN.TLD/egroupware/groupdav.php/Default/calendar/ | 1 | Kalender Gruppe Default | Gruppe Default | <null> | <null> | 1 | 0 | 0 | | 22 | 3 | https://MYDOMAIN.TLD/egroupware/groupdav.php/Default/addressbook/ | 0 | Adressbuch Gruppe Default | Adressbuch Gruppe Default | <null> | <null> | <null> | <null> | 0 | | 23 | 3 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/addressbook-Default/ | 0 | Adressbuch Gruppe Default | Adressbuch Gruppe Default | <null> | <null> | <null> | <null> | 0 | | 24 | 3 | https://MYDOMAIN.TLD/egroupware/groupdav.php/ME/addressbook/ | 0 | Adressbuch MY NAME | Adressbuch MY NAME | <null> | <null> | <null> | <null> | 1 | ---------- SYSTEM INFORMATION Android version: 6.0.1 (23.5.A.1.291) Device: Sony SGP621 (SGP621)
-
Hello,
I don’t see any problem in the DAVdroid request. The server responds with 403 Forbidden, so I would not say that DAVdroid doesn’t want to upload, but that the server doesn’t want to accept.
Please ask your server support.
BTW, did you try entering a name?
-
Thanks for your reply. This was my first idea when I saw the log. But then I tried the same action with another cardDAV application and it worked…
Best regards
Holger -
@Duddits said in Problem with uploading new/changed contacts to egroupware:
Thanks for your reply. This was my first idea when I saw the log. But then I tried the same action with another cardDAV application and it worked…
Did you try entering a name for the contact? It seems it has an empty name, which may confuse eGroupware.
Other CardDAV applications may create other VCards, which may or may not work. I can’t tell how other applications work. If you want me to compare why the one works and the other doesn’t, please provide the specific requests and VCards so that I can have a look.
-
Ah - you are right - that was the problem!
Thanks a lot
Best regards
Holger