Bug 440750 - Caldav and Cardav Support For Mailfence Email Service Not Working
Summary: Caldav and Cardav Support For Mailfence Email Service Not Working
Status: CONFIRMED
Alias: None
Product: kontact
Classification: Applications
Component: contacts (show other bugs)
Version: unspecified
Platform: Archlinux Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-08 18:16 UTC by Kan
Modified: 2022-01-07 00:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kan 2021-08-08 18:16:42 UTC
SUMMARY
I was asked on KDE's sub-reddit to open a ticket, after the contributor there tested my claim that Kontact/Kmail's caldav/cardav support did not work with Mailfence.com's Cardav/Caldav. He came to the same conclusion, it does not work. I think I also ran into this problem when I used Fastmail servers/service as well a few years back. 

There is a separate bug report opened in 2018 that looks to be ignored, asking for TLS certificate support for Caldav/Cardav. I note that here because Mailfence uses TLS certificates in their IMAP settings. Not sure if the issues are related, but worth noting. That bug report is here; https://bugs.kde.org/show_bug.cgi?id=393951

STEPS TO REPRODUCE
1. Used the DAv groupware resource
2. Entered user name and password
3. Hit the 'Add' Server Configuration, selected Cardav, and entered the remote URL provided by Mailfence.com 
4. The Server Configuration box populates, so there is a connection, but it never connects after hitting the OK button when performing a refresh in Kontact/Kmail, etc. 

OBSERVED RESULT
No Caldav/Cardav connection, kind of a time-out situation.

EXPECTED RESULT
For it to fetch and push contact and calendar information

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.8-zen2-1-zen (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i5-9600K CPU @ 3.70GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Kan 2021-08-08 18:20:57 UTC
I forgot to add, using Thunderbird's add-on for caldav/cardav called TbSync, it works fine with Mailfence.com's protocol.
Comment 2 gjditchfield 2021-08-09 01:12:40 UTC
Confirmed with 5.18.40.

KOrganizer puts up a "site does not require authentication" dialog.

Stderr contains

parse error from icalcomponent_new_from_string. string= "<!doctype html><html lang=\"en\"><head><title>HTTP Status 401 â\u0080\u0093 Unauthorized</title><style type=\"text/css\">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 â\u0080\u0093 Unauthorized</h1></body></html>"
org.kde.pim.davresource: DavGroupwareResource::onItemFetched: Failed to parse item data.  "http://mailfence.com/dav/«me»/private/events/1628468727.R649.ics"
Comment 3 gjditchfield 2021-08-15 15:56:48 UTC
Possibly related: https://bugs.kde.org/show_bug.cgi?id=434757