Summary: | KOrganizer wrongly states: import of .ics file without UIDs succeded. | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Lukas Schneiderbauer <lukas.schneiderbauer> |
Component: | import/export | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kfunk, kollix, ludo444, rhsdevelopment |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kcalendarcore/commit/770ece2db6218fba373fbd84d3ef39a3a29c9edf | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | calendar file which is not correctly imported by korganizer |
Description
Lukas Schneiderbauer
2014-10-06 11:00:49 UTC
Created attachment 88995 [details]
calendar file which is not correctly imported by korganizer
I found out that the UID property is required (if one can believe http://www.kanzaki.com/docs/ical/uid.html). I also found out (through akonadiconsole) that the events are actually added (but then not shown in korganizer). Also the added faulty event keep the dav-resource from syncing I think due to this: [.xsession-errors] kdepimlibs (kcalcore) KCalCore::ICalFormatImpl::Private::readIncidenceBase: The incidence didn't have any UID! Report a bug to the application that generated this file. After removing the faulty events with akonadiconsole the syncing process began working again. So I think the importer should either state that importing is not possible or generate a uid-field itself. I would prefer the latter. I can confirm experiencing this bug in Korganizer 4.14.1. Attempting to import an iCalendar file missing the UID property fails, although Korganizer prompts that the import was successful. Manually editing the file to include a UID leads to successful import. Given that generation of iCalendar files missing the UID property is not uncommon, gracefully handling this situation by allowing successful import would be helpful. This still happens in KDE neon 16.04. Especially with remote calendars. *** Bug 411777 has been marked as a duplicate of this bug. *** Git commit 770ece2db6218fba373fbd84d3ef39a3a29c9edf by Glen Ditchfield. Committed on 11/04/2022 at 22:21. Pushed by gditchfield into branch 'master'. Create UIDs if necessary If `ICalFormat::fromRawString()` processes a component that lacks a UID property, it creates an instance with an invalid UID, which violates RFC 5545. This patch generates a UID from the component's property values, which will be the same every time it is processed. M +114 -0 autotests/testicalformat.cpp M +3 -0 autotests/testicalformat.h M +17 -3 src/icalformat_p.cpp https://invent.kde.org/frameworks/kcalendarcore/commit/770ece2db6218fba373fbd84d3ef39a3a29c9edf |