Bug 361332 - Upgrade from 4.14.2 to 15.12.3 breaks syncing with original ICS calendar file
Summary: Upgrade from 4.14.2 to 15.12.3 breaks syncing with original ICS calendar file
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 23:25 UTC by tleedavidson
Modified: 2023-10-03 07:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tleedavidson 2016-04-02 23:25:03 UTC
After the upgrade, I noticed that the calendar file, "~/.kde4/share/apps/korganizer/std.ics", wasn't being updated after making changes to my ToDo list even though the changes persisted in KOrganizer between launches. They were obviously cached by Akonadi.

So, I stopped Akonadi, removed "~./local/share/akonadi", and restarted Akonadi to try forcing a re-sync. Akonadi failed to reload the calendar file complaining with:
Invalid URL: QUrl("/home/user/.kde4/share/apps/korganizer/std.ics")
"Could not load file '/home/user/.kde4/share/apps/korganizer/std.ics'."

The file is there, has not been modified, and was working fine with KOrganizer v4.14. But, it does not get loaded by KOrganizer5 causing no calendars available even though the Personal calendar is shown in Settings and has the correct location.

Reproducible: Always

Steps to Reproduce:
1. Upgrade from KOrganizer 4 to KOrganizer 5 (15)
2. Stop the Akonadi server, remove the Akonadi database, and restart the server
3. Launch KOrganizer; your calendar is unavailable.

Actual Results:  
ToDo list is gone. Calendar is unavailable.

Expected Results:  
Pre-upgrade personal data migrated and syncing preserved.

KDE Plasma Version: 5.5.5
Qt Version: 5.5.1
Kernel Version: 4.1.15
OS Type: 64-bit
Comment 1 Bruno Friedmann 2016-04-18 15:48:57 UTC
Still true with git version
Message pick from .xsession-error

Invalid URL: QUrl("/home/bruno/oc/agendas/bf_2004-2005.ics")
"Could not load file '/home/bruno/oc/agendas/bf_2004-2005.ics'."

Can be worse, if you change the name of the calendar (right click properties),
the file is rewritten with only the first event (data loss)
Comment 2 Justin Zobel 2022-10-24 00:46:54 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bruno Friedmann 2022-10-24 06:34:01 UTC
Can't tell you anymore, this method of work has been replaced by other (nextcloud) way.
Comment 4 tleedavidson 2022-10-27 03:34:59 UTC
Well, I am not upgrading from KOrganizer4 to KOrganizer5; I am using version 5.14.2. However, I took steps 2 & 3 of How to Reproduce.

After removing the Akonadi database, I did need to re-open my std.ics calendar file. It loaded successfully, and, at a cursory glance, all my data appears to be intact.

I'd say the issue is resolved, but I'll let you change the status if you agree.
Comment 5 Bug Janitor Service 2022-11-11 05:18:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bruno Friedmann 2022-11-11 08:32:42 UTC
I'm not the reporter, and don't use anymore this technics, so I can't tell you.
Comment 7 Daniel Vrátil 2023-10-03 07:02:00 UTC
Marking as fixed, we now correctly use `QUrl::fromLocalFile()` to make sure we handle local paths properly. Has been solved for quite a while.