Bug 436693

Summary: akonadi_icaldir_resource does not write events/calender entries to directory
Product: [Frameworks and Libraries] Akonadi Reporter: Bernhard E. Reiter <bernhard>
Component: ICal dir resourceAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: kde-bugzilla
Priority: NOR    
Version: 5.17.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bernhard E. Reiter 2021-05-06 16:03:14 UTC
The "iCal Calendar Folder" resource does not save the iCalender files to the configured path (as it is expected).

1. In Kontact add a new calender resource, select "iCal Calendar Folder"
2. Configure it to use path in your home directory like "/home/bern/kontact/locally-saved-events"
3. Add a few events in kontact (to this calender resource)
4. Use kontact a while, sync the resource. 
5. Shutdown kontact / akonadi

find /home/bern/kontact/locally-saved-events 
does not find any files

Each calender entry should give an iCalender file in this directory.

Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-lp152.72-default
OS Type: 64-bit
Graphics Platform: X11

rpm package: kdepim-runtime-21.04.0-lp152.255.1.src.rpm

akonadiconsole shows that there are events in the resource and the
resource itself is configured as is, no problems visible.
The mysql backend is used as database for akonadi.
Comment 1 Bernhard E. Reiter 2021-05-06 16:11:34 UTC
The problem was also seen with kdepim-runtime-20.12.1-lp152.245.2.x86_64
which was 5.16.x . For the test I've createda fresh resource.
Comment 2 sourcemaker 2023-08-07 16:06:14 UTC
I can confirm this issue.
Comment 3 Bug Janitor Service 2023-08-23 15:22:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kdepim-runtime/-/merge_requests/127
Comment 4 Daniel Vrátil 2023-08-24 16:06:53 UTC
Git commit 71c37db994ccb4877c9220e200b2517c5fd5b1d4 by Daniel Vrátil.
Committed on 23/08/2023 at 17:22.
Pushed by dvratil into branch 'release/23.08'.

icaldirresource: fix directory not being configured on start

Fix a regression from porting to config plugin - the updated
configuration was not reloaded from file prior to attempting
to create/load the configured directory.
FIXED-IN: 5.24.1

M  +7    -1    resources/icaldir/icaldirresource.cpp