Bug 432047 - KOrganizer does not detect subscribed calendars on Nextcloud
Summary: KOrganizer does not detect subscribed calendars on Nextcloud
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: groupware (show other bugs)
Version: 5.16.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-24 19:23 UTC by Godfrey Hendrix
Modified: 2021-11-09 17:07 UTC (History)
3 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 Godfrey Hendrix 2021-01-24 19:23:35 UTC
SUMMARY
My todo list service (Todoist) supports one way calendar feeds which I imported to my Nextcloud calendar. These calendars do not show up in KOrganizer. All my manually created calendars do show up and two way sync is possible and fast. I also setup my iPhone using the same CalDAV link I used with Nextcloud, and I am able to see all the subscribed feeds normally on it.

STEPS TO REPRODUCE
1. Configure KOrganize to sync with a Nextcloud CalDAV user
2. Add a calendar in Nextcloud via the "New Subscription from Link" option
3. Refresh KOrganizer's connection with Nextcloud

OBSERVED RESULT
No calendars subscribed on the Nextcloud instance will be detected/displayed by KOrganizer.


EXPECTED RESULT
Subscribed calendars are detected normally as all other calendars are.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux (Vanilla/Mainline)
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Issue does not appear to be present on the iOS calendar app.
Comment 1 Mikael 2021-11-06 19:38:06 UTC
(In reply to Godfrey Hendrix from comment #0)

Could you share what is the user-agent for the request KOrganizer makes when you are requesting for calendars? You can check this from your server logs. This issue of yours could be solved from Nextcloud's end.
Comment 2 Godfrey Hendrix 2021-11-09 04:18:36 UTC
(In reply to Mikael from comment #1)
> (In reply to Godfrey Hendrix from comment #0)
> 
> Could you share what is the user-agent for the request KOrganizer makes when
> you are requesting for calendars? You can check this from your server logs.
> This issue of yours could be solved from Nextcloud's end.

Below are the logs generated when I restart the Nextcloud account on KOrganizer. I think it is on that end as my phone (iOS) works fine with the same settings. The native Nextcloud calendar shows up, but the Todoist calendars I subscribe to don't.

Logs:

172.19.0.2 - - [09/Nov/2021:04:14:22 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:22 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 1815 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 1824 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 401 1856 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 401 1860 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 207 2038 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 207 2053 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 401 1860 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/addressbooks/users/GodfreyHendrix/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 207 3027 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/addressbooks/users/GodfreyHendrix/ HTTP/1.1" 207 1983 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 1824 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 1821 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 401 1852 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 401 1864 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 207 2044 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/principals/users/GodfreyHendrix/ HTTP/1.1" 207 2049 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 401 1862 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - - [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/addressbooks/users/GodfreyHendrix/ HTTP/1.1" 401 1866 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/addressbooks/users/GodfreyHendrix/ HTTP/1.1" 207 1979 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 207 3011 "-" "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87 akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
Comment 3 Mikael 2021-11-09 08:53:25 UTC
(In reply to Godfrey Hendrix from comment #2)
> (In reply to Mikael from comment #1)
> > (In reply to Godfrey Hendrix from comment #0)
> > 
> > Could you share what is the user-agent for the request KOrganizer makes when
> > you are requesting for calendars? You can check this from your server logs.
> > This issue of yours could be solved from Nextcloud's end.
> 
> Below are the logs generated when I restart the Nextcloud account on
> KOrganizer. I think it is on that end as my phone (iOS) works fine with the
> same settings. The native Nextcloud calendar shows up, but the Todoist
> calendars I subscribe to don't.
> 
> Logs:
> 
> 172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND
> /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 207 3011 "-"
> "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87
> akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"

Okay, it is this issue with Nextcloud https://github.com/nextcloud/server/issues/17754
kOrganizer (akonadi) could be updated to support webcals on caldav, but for now best way to solve this is to just update Nextcloud with above useragent. I'm going to make pull request of this because I'm having a same issue, and just wanted to confirm the user agent that is being used.

If you want a temporary fix, you can add "/KIO/"  -regex to ENABLE_FOR_CLIENTS array in apps/dav/lib/CalDAV/WebcalCaching/Plugin.php. Do note that this doesn't persist Nextcloud updates. 
Here's an example 
https://github.com/nextcloud/server/blob/81b60c14c985b0a46fd31733db2add9efd7bedba/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php#L46
Comment 4 Godfrey Hendrix 2021-11-09 17:07:09 UTC
(In reply to Mikael from comment #3)
> (In reply to Godfrey Hendrix from comment #2)
> > (In reply to Mikael from comment #1)
> > > (In reply to Godfrey Hendrix from comment #0)
> > > 
> > > Could you share what is the user-agent for the request KOrganizer makes when
> > > you are requesting for calendars? You can check this from your server logs.
> > > This issue of yours could be solved from Nextcloud's end.
> > 
> > Below are the logs generated when I restart the Nextcloud account on
> > KOrganizer. I think it is on that end as my phone (iOS) works fine with the
> > same settings. The native Nextcloud calendar shows up, but the Todoist
> > calendars I subscribe to don't.
> > 
> > Logs:
> > 
> > 172.19.0.2 - GodfreyHendrix [09/Nov/2021:04:14:23 +0000] "PROPFIND
> > /remote.php/dav/calendars/GodfreyHendrix/ HTTP/1.1" 207 3011 "-"
> > "Mozilla/5.0 (X11; Linux x86_64) KIO/5.87
> > akonadi_davgroupware_resource_0/5.18.3 (21.08.3)"
> 
> Okay, it is this issue with Nextcloud
> https://github.com/nextcloud/server/issues/17754
> kOrganizer (akonadi) could be updated to support webcals on caldav, but for
> now best way to solve this is to just update Nextcloud with above useragent.
> I'm going to make pull request of this because I'm having a same issue, and
> just wanted to confirm the user agent that is being used.
> 
> If you want a temporary fix, you can add "/KIO/"  -regex to
> ENABLE_FOR_CLIENTS array in apps/dav/lib/CalDAV/WebcalCaching/Plugin.php. Do
> note that this doesn't persist Nextcloud updates. 
> Here's an example 
> https://github.com/nextcloud/server/blob/
> 81b60c14c985b0a46fd31733db2add9efd7bedba/apps/dav/lib/CalDAV/WebcalCaching/
> Plugin.php#L46

Ah, ok. Thanks for the help!