Bug 223388 - Reminders of Akonadi ressources do not get notified
Summary: Reminders of Akonadi ressources do not get notified
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.4 rc1
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-19 10:11 UTC by Patrick Scharrenberg
Modified: 2011-07-07 22:33 UTC (History)
5 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 Patrick Scharrenberg 2010-01-19 10:11:49 UTC
Version:           4.4 rc1 (using Devel)
Installed from:    Compiled sources

Korganizer does not show notifications of reminders for events coming from akonadi resources. I tested Google calendar resource and ical resource.

The edit dialog shows one advanced reminder (e.g. 15 minutes before the event starts).

For non-Akonadi resources it works fine.
Comment 1 Tassilo Horn 2010-03-18 23:02:21 UTC
I can confirm that no reminders are ever shown for me, and in fact, I only use akonadi resources. My boss starts getting angry, cause I'm always late. ;-)

I use KDE 4.4.1.
Comment 2 Jan-Willem van de Meent 2010-03-29 16:12:22 UTC
Just want to say same here. I have my appointments in an ical file. When displaying appointments using the akonadi resource, reminders do not work. When accessing the ical file directly they do.

Can't say for sure when this behaviour started, but think it may have been a 4.4 regression.
Comment 3 Matthias Heinz 2010-04-15 19:26:31 UTC
I think it's a problem with akonadi. korgac doesn't seem to find it important enough, I guess.


And yes, an organizer app that doesn't remind is very annoying. Please fix this!
Comment 4 Clara Gnos 2010-06-02 10:25:18 UTC
orgac doesn't remind me on any dates I have added to korganizer (of course I 
added events with reminders enabled). I am using akonadi with file backend and 
birthday backend. I think that events with time associated show normally. Just 
tried to test it using an event for today (qwe - warn 15 minutes before start; 
zxc - warn 15 minutes after start) and one event with time associated (warn 2 
minutes before start)

I tried to use dumpAlarms of dbus org.kde.korganizer.KOrgac and it shows

{"AlarmDeamon::dumpAlarms() from 2010-06-01T00:00:00+02:00 to 
2010-06-01T23:59:59+02:00", " asd (2010-06-01T21:39:00+02:00)", " qwe 
(2010-06-01)", " zxc (2010-06-01)"}

I see a reminder for asd, but still miss the one for qwe and zxc.
Comment 5 Clara Gnos 2010-06-04 14:57:05 UTC
Ok, you may noticed that asd is at the same date. Now checkAlarms (other than dumpalarms) only checks Alarms since the last check till the current time. dumpAlarm checks all alarms on the current date. So I created an incident on the next day and said that the Alarm should be 1 day before the start. So I tried to change CalendarsLastChecked back one day in ~/.kde/share/config/korgacrc

I can now see the date when I restart korgac (I stopped it before changing korgac)
Comment 6 Clara Gnos 2010-06-04 16:50:50 UTC
Ok, it seems to work perfect when I change the date back and start it under a user session. Only when I start my pc new it happens. So the problem is (afaik) following:
 * korgac starts early and CalendarsLastChecked is (for example) at 2010,6,3,14,57,55
 * korgac tries to read the alarms from 2010,6,3,14,57,55 till 2010,6,4,12,34,56 in KOAlarmClient::checkAlarms() -> no alarms are returned because akonadi takes a little while to be ready (and without the Resources loaded mCalendar->alarms just returns nothing)
 * korgac has nothing todo and updates CalendarsLastChecked
 * Next time it checks the alarms but no interesting alarm is their because in the last 60 seconds no new alarm appeared -> all past alarms are gone forever :(

So only way to fix the problem is currently to remove Calender stuff from akonadi and use non-akonadi resources in korganizer. The biggest problem is that this cannot fix the birthday problem because since 4.4 all Adressbooks are stored in Akonadi.... sry, but this makes akonadi the biggest KDE fail since KDE 4.0
Comment 7 Clara Gnos 2010-06-04 17:49:06 UTC
Workaround is currently to startup akonadi earlier. Just add following to $HOME/.kde/Autostart/force-akonadistart.sh

#! /bin/sh
/usr/bin/akonadictl start 

and then mark it executable using `chmod +x $HOME/.kde/Autostart/force-akonadistart.sh`

Now restart your re-login and maybe you will receive upcoming alarms (but the past is still past and gone forever)
Comment 8 Sergio Martins 2011-07-07 22:33:55 UTC
KOrganizer is fully ported to akonadi now, we no longer use the akonadi compatability bridge.

All reminders are working, no matter what backend they use.