Bug 465735

Summary: Kontact doesn't work with iCal URLs
Product: [Applications] kontact Reporter: Alex Ander <aalexandera>
Component: calendarAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.20.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Ander 2023-02-15 00:04:39 UTC
SUMMARY
Kontact doesn't work with iCal data from URL. It does work with downloaded file, but doesn't with URL. If I add it, Kontact add a "akonadi_ical_resource_1" line under calendars and don't show any events. Right click and "Update Calendar" and "Update Folder" changes nothing.
Sometimes after a while - after many system restarts - the calendar with given display name appears as one more calendar and shows right events. But this is quite unpredictable, I couldn't find any correlation, and removing the "akonadi_ical_resource_1" calendar removes also the correct calendar from Kontact list.
 
STEPS TO REPRODUCE
1. go to calendars in Kontact.
2. Right Click on calendars frame -> "add calendar"
3. Choose "iCal Calendar File"
4. Set your exported calendar's URL as filename and something as display name, press ok
5. look onto calendars list.

OBSERVED RESULT
Added calendar named "akonadi_ical_resource_1", without any events.

EXPECTED RESULT
Added calendar with name from "display name" and with all events from URL.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-60-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I tested iCal URLs from Leantime and from Nextcloud. 
The problem exists even on fresh installed Kubuntu. 
I used Backports PPA to get the latest Kontact.
Comment 1 Laurent Montel 2023-02-15 06:25:14 UTC
Hi,
Do you have a test case file about it ?.
Regards
Comment 2 Alex Ander 2023-02-15 10:14:02 UTC
(In reply to Laurent Montel from comment #1)
> Hi,
> Do you have a test case file about it ?.
> Regards

Hi!
I made a test iCal link with nextcloud: https://nextcloud.webo.hosting/remote.php/dav/public-calendars/fgGHm4CpLw7A9eda/?export

All the best
Comment 3 Laurent Montel 2023-02-15 12:20:03 UTC
Indeed I can't see "display name" for sure.
no event too.

What do you means by "Kontact doesn't work with iCal data from URL. It does work with downloaded file, but doesn't with URL" ?.
What is the url that you put in resource ? local ? url ?
Comment 4 Alex Ander 2023-02-15 13:02:53 UTC
(In reply to Laurent Montel from comment #3)
> What is the url that you put in resource ? local ? url ?
This is the URL to .ics file, located in the web. Actually, dynamically created on each call. I followed instructions from this old forum, where they said, it worked: https://bbs.archlinux.org/viewtopic.php?id=166238
I want to see events from remote calendar. I don't need it for Nextcloud, as it does support CalDAV, but for another application, which supports only iCal exports.

And looks like the thing with "akonadi_ical_resource_1" is not new, as it can be found here: https://www.reddit.com/r/kde/comments/qalqf0/readding_an_ical_file_to/ and was reported here: https://bugs.kde.org/show_bug.cgi?id=452456
Comment 5 Alex Ander 2023-02-17 13:21:25 UTC
(In reply to Laurent Montel from comment #3)
> Indeed I can't see "display name" for sure.
> no event too.
Can we mark the bug as "confirmed" then?