Bug 502025

Summary: The ical file resource should not allow new entries if it has no path in its config
Product: [Frameworks and Libraries] Akonadi Reporter: premiumshelf56
Component: ICal file resourceAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: normal CC: carl, krammer
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description premiumshelf56 2025-03-26 14:32:44 UTC
SUMMARY
The ical file resource should not allow new entries if it has no path in its config

STEPS TO REPRODUCE
Create an iCal file resource with no path configuration and add an entry to it 

OBSERVED RESULT
Works fine

EXPECTED RESULT
An error

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 33.6 GB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060

ADDITIONAL INFORMATION
Comment 1 Kevin Krammer 2025-03-26 15:47:31 UTC
This is primarily caused by https://bugs.kde.org/show_bug.cgi?id=502024 but it could also be caused by other changes to the config.

My KDE PIM foo is super rusty but I think the issue might be in SingleFileResource.

It probably should consider itself offline/broken if it has no file path/URL to work on.
And maybe additionally make the root collection read-only?

See also https://discuss.kde.org/t/korganizer-calendar-data-location/32036