Carddav error "204 No Content"

REPRODUCIBILITY (100% or how often):
BUILD ID = OS VERSION 4.1.0.24 (Settings > About product):
HARDWARE (XA2, X10, X10 II, …): XA2
UI LANGUAGE: German
REGRESSION: (compared to previous public release: Yes, No, ?): ?

DESCRIPTION:

I had to move to a new Xperia XA2 because of a badly broken display. Everything works fine, with the exception of my addressbook. I regularly sync calendar and addressbook with egroupware via caldav/carddav protocol and it worked quite good (with the exception, that cards got only synced, when they were changed in egroupware, no way to make a full transfer in the beginning).
But now, nearly same hardware (old mobile xperia XA2 dual sim, new hardware xperia XA2 single sim), same software (SFOS 4.1.0.24), my contacts get not more synced. If i look in the protocol of egroupware, there are some contacts, which gets send, but SFOS responds with error “204 No Content”.
Calendar sync works without problems (only thing is, that I cant change events from egroupware, which was possible in an older version, and also with the new xperia XA2 single sim in the beginning, but after many tries of getting addressbook to work it isn’t possible any more)

PRECONDITIONS:

create new caldav/carddav account in SFOS

STEPS TO REPRODUCE:

  1. goto settings → accounts → menu of egroupware account: syncronisation
  2. wait a few seconds

EXPECTED RESULT:

addresses get properly synced

ACTUAL RESULT:

calendar is synced, but no addresses

ADDITIONAL INFORMATION:

excerpt of the egroupware log for one contact:

*** 172.19.0.1 2020-10-09T17:07:25+02:00
PUT /egroupware/groupdav.php/triessner/addressbook/f6313dfc63f64a9d8dff4af3e02c90d7.vcf HTTP/1.1
Connection: Keep-Alive
Content-Length: 444
X-Forwarded-Server: w.x.y.z
X-Forwarded-Host: w.x.y.z
X-Forwarded-For: w.x.y.z
X-Forwarded-Proto: https
Authorization: Basic ***************
User-Agent: Mozilla/5.0
Accept-Language: de-DE,en,*
Accept-Encoding: gzip, deflate
If-Match: “1255:15”
Content-Type: text/vcard; charset=utf-8
Host: w.x.y.z
Content-Length: 444
Content-Type: text/vcard; charset=utf-8

BEGIN:VCARD
VERSION:3.0
TEL;TYPE=VOICE,HOME:+49-…
TEL;TYPE=ISDN,CELL,HOME:+49-…
ORG:…
UID:f6313dfc63f64a9d8dff4af3e02c90d7
ADR;TYPE=WORK:;;Str. 15;Bad S;;12345;
TEL;TYPE=VOICE,HOME:+49-…
ORG:Org
ADR;TYPE=WORK:;;Str. 15;Bad S;;12345;
REV:2020-10-09T15:07:23Z
N:Max;Mustermann;;
FN:Max Mustermann
CLASS:PUBLIC
END:VCARD

HTTP/1.1 204 No Content
Date: Fri, 09 Oct 2020 15:07:25 GMT
Server: nginx/1.18.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
X-Dav-Powered-By: EGroupware 20.1 CalDAV/CardDAV/GroupDAV server
ETag: “1255:16”
X-WebDAV-Status: 204 No Content
*** PUT /triessner/addressbook/f6313dfc63f64a9d8dff4af3e02c90d7.vcf → “204 No Content” took 0.010 s

Are you sure that is Sailfish responding with 204?
Isn’t it just a server-side log of the whole transaction, including that the server says 204?

Admittedly i don’t know much about caldav/carddav… but 200-codes are success codes, just that this particular one says that it carries no data.

https://httpstatus.es/204

No I’m not. I just looked in the log of egroupware and thought, that this is the reason of the failing sync. Didn’t find other problems in the log, and I don’t want to send the whole log, because there are lots of personal contacts and calender entries, which I don’t want to share in the internet :wink: