Bug 502025 - The ical file resource should not allow new entries if it has no path in its config
Summary: The ical file resource should not allow new entries if it has no path in its ...
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: ICal file resource (other bugs)
Version First Reported In: 6.3.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-26 14:32 UTC by premiumshelf56
Modified: 2025-03-26 15:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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