Bug 511223

Summary: cant connect to stalwart as carddav server
Product: [Frameworks and Libraries] Akonadi Reporter: Arian <mail+30y4rgtc>
Component: DAV ResourceAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: 6.5.0   
Target Milestone: ---   
Platform: EndeavourOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Arian 2025-10-27 15:51:56 UTC
SUMMARY
I can't connect to my stalwart server with my Contacts. I am not sure who is to blame but Thunderbird, Evolution, DAVx5 work, so I suspect it may be Akonadis Fault.

STEPS TO REPRODUCE
1. Setup a stalwart server
2. connect to the carddav port via https://stalwartserver.lan/dav/card/username/
3. Check Errorlogs

OBSERVED RESULT
Stalwart gives the following error.

 2025-10-27T15:43:13Z DEBUG WebDAV error (web-dav.error) listenerId = "http", localPort = 8080, remoteIp = 172.16.64.2, remotePort = 36220, url = "/dav/card/shrippen/default/", type = "CardDAV", details = ["Depth", 0, "Content-Type", "text/xml; charset=utf-8"], result = 400, reason = "Unexpected token: ElementStart { name: NamedElement { ns: Dav, element: Allprop }, raw: RawElement { element: BytesStart { buf: Owned("allprop xmlns=\\"DAV:\\""), name_len: 7 }, namespace: Some([68, 65, 86, 58]) } }", elapsed = 0ms

EXPECTED RESULT
Should receive available contacts as in thunderbird, evolution or DAVx5

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION