Bug 452456 - Kalendar displayes "akonadi_ical_resource_8" instead of configured calendar name
Summary: Kalendar displayes "akonadi_ical_resource_8" instead of configured calendar name
Status: CONFIRMED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 1.0.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords:
: 465571 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-04-10 09:18 UTC by postix
Modified: 2023-04-24 13:45 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (387.43 KB, image/png)
2022-04-10 09:18 UTC, postix
Details
Screenshot of kalendar with two identical listings (123.78 KB, image/png)
2022-04-25 22:50 UTC, pedrud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-04-10 09:18:27 UTC
Created attachment 148082 [details]
Screenshot

STEPS TO REPRODUCE
1. Settings -> Configure Kalendar -> Calendar Resources
2. Add New Calendar Source... -> ICal Calendar File
3. Set 
* File Name: https://foo.bar.de/calendar/export_execute.php?userid=123&authtoken=456&preset_what=all&preset_time=custom
* Display Name "MyCalendar"
4. Hit "OK"

OBSERVED RESULT
Calendar is named "akonadi_ical_resource_8" in the left panel of the main window.

EXPECTED RESULT
Calendar is named "MYCalendar" as expected.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220407
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.17.1-1-default (64-bit)
Graphics Platform: Wayland
Kalendar: 1.0.0 from OpenSUSE TW Repo
Comment 1 postix 2022-04-10 09:23:11 UTC
First if I click on "Restart" in the "Calendar Sources" dialog, the entry's name is updated to the correct name in the dialog and the correct named entry is added(!) to the left Calendars panel of the main window, additionally to the still existing "akonadi_ical_resource_N" one.
Comment 2 postix 2022-04-10 09:27:00 UTC
If I delete the source after the step in comment1, both the "MyCalendar" and the "akonadi_..." entry are deleted.
Comment 3 postix 2022-04-10 09:52:23 UTC
You may use this example Kalendar source for reproduction: https://sandbox.moodledemo.net/calendar/export.php?course=3
Comment 4 pedrud 2022-04-25 22:16:04 UTC
I am facing the same bug. The only difference, is I am using an iCal URL versus a local file. However, my observed and expected results are the same and my steps to reproduce are also the same as the OP.


SOFTWARE/OS VERSIONS
Operating System: Garuda Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.4-zen1-1-zen (64-bit)
Graphics Platform: X11
Kalendar: 22.04.0 from Arch AUR
Comment 5 Claudio Cambra 2022-04-25 22:31:14 UTC
Unfortunately there is a distinction between a calendar "folder", which contains child calendars and events, and the calendar "source", which is what you see in the settings.

This distinction is not very clear, but to clarify a bit: if you right click the calendar/calendar source in question in the sidebar and select "Edit calendar..." instead of "Calendar source settings..." and change the name, this should be reflected in the application sidebar and the incidences.
Comment 6 pedrud 2022-04-25 22:50:41 UTC
Created attachment 148371 [details]
Screenshot of kalendar with two identical listings
Comment 7 pedrud 2022-04-25 22:51:32 UTC
(In reply to Claudio Cambra from comment #5)
> Unfortunately there is a distinction between a calendar "folder", which
> contains child calendars and events, and the calendar "source", which is
> what you see in the settings.
> 
> This distinction is not very clear, but to clarify a bit: if you right click
> the calendar/calendar source in question in the sidebar and select "Edit
> calendar..." instead of "Calendar source settings..." and change the name,
> this should be reflected in the application sidebar and the incidences.

Thanks for the quick response. However, as you can see in the attached screenshot, now I have two calendar's of the same name. The problem is one contains no data (the one previously called 'akonadi_ical_resource') and the actual calendar. The first one in the list called 'Moon/Astro' is what I assume you refer to as the 'folder' and the second one is the proper calendar with events displayed. I'm trying to figure out how to have only one listed. When I delete the 'folder' the calendar also gets deleted.
Comment 8 Carl Schwan 2023-04-24 13:45:14 UTC
*** Bug 465571 has been marked as a duplicate of this bug. ***