| Summary | Kronolith gives premature notifications |
| Queue | Kronolith |
| Queue Version | 2.2-RC2 |
| Type | Bug |
| State | Assigned |
| Priority | 1. Low |
| Owners | Jan Schneider <jan (at) horde (dot) org> |
| Requester | eric (at) knudstrup (dot) org |
| Created | 01/31/2008 (101 days ago) |
| Due | |
| Updated | 05/01/2008 (10 days ago) |
| Assigned | 05/01/2008 (10 days ago) |
| Resolved | |
| Attachments | horde-alarms.diff ![]() |
| Milestone | |
| Patch |
Priority ⇒ 1. Low
State ⇒ Assigned
Taken from Chuck Hagenbuch
Assigned to Jan Schneider
I still want to take a look why this didn't work with MDB2_Schema.State ⇒ Resolved
Taken from
Assigned to Chuck Hagenbuch
Looking at this, I agree with Michael Redinger. Patch committed - thanks!Assigned to
State ⇒ Assigned
Seems to be a problem with MDB2_Schema.Yes, I used the setup script.Right, I did use setup.php.I suppose you created the table with the setup.php script the first time?You are right - that seems to be some problem with the database.
A closer look at the database showed that all datetime columns where set to a '1970' default:
`alarm_start` datetime NOT NULL default '1970-01-01 00:00:00',
`alarm_end` datetime default '1970-01-01 00:00:00',
`alarm_snooze` datetime default '1970-01-01 00:00:00',
I have not the slightest idea how that happened. I started with horde-webmail-1.1-rc2 with a clean OS+DB install and only updated the files to the latest horde/imp RCs since then (and did not touch the database - that is something I always try to avoid because I am not well schooled in it ...)
I now dropped the table an recreated it. No more stupid defaults ...
Anyway - I would be nice to know if this solves Eric's problem, too (I suppose it does).
Thanks,
Michael
Taken from
Are you sure that alarm_snoozed is a not a NOT NULL column in your alarms table? It doesn't make any sense, and I can't reproduce that MySQL is supposed to add 1970-01-01 to the alarm_snoozed column if you don't specify it. That would be badly broken behavior.New Attachment: horde-alarms.diff
I think I found the problem:
I suppose alarm_snooze should not be set to '1970-01-01 00:00:00'? For my alarms, this is always true.
(See eric's horde_alarms sample below.)
I tracked the alarm notification to the select statement in lib/Horde/Alarm/sql.php, function _list.
One of the conditions is:
alarm_snooze <= $time->rfc3339DateTime()
If alarm_snooze is set to 1970, this is always true.
eg.:
SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start <= '2008-03-21T10:10:07') OR alarm_snooze <= '2008-03-21T10:10:07') AND (alarm_end IS NULL OR alarm_end >= '2008-03-21T10:10:07') AND (alarm_uid = '' OR alarm_uid = 'myuser') ORDER BY alarm_start, alarm_end;
I am using a MySQL database. In the horde SQL scripts, alarm_snooze is set to DATETIME.
If you insert something into horde_alarms without setting alarm_snooze explicitely, it is set to the start of unix time (1970).
Attaching a patch.
I am experiencing exactly the same problem:
- notifications are created as soon as a task or event is created
- if the notification method is a popup, the popup keeps reappearing every time I select a page.
changing the alarm method does not help - only deleting the event or task or deleting the alarm in the database.
- if the method is email, I immediately get an email
- I used a clean account
- the alarm entry in horde_alarms seems to be quite ok (at least for me)
I am using the latest RCs (RC3 for horde, RC2 for nag and kronolith; I also tried kronolith CVS).
As this happens both with kronolith and turba, I suppose the problem is somewhere in the horde code.
Assigned to
Assigned to Jan Schneider
Here's one I just created. The email got sent out immediately after I entered it into the calendar. I'm on RC2 now.('20080227142103.361826vdkjj1m8n4@knudstrup.org','eknuds','2008-03-26 16:00:00','2008-04-10 17:00:00','a:1:{i:0;s:4:\"mail\";}',
'a:1:{s:4:\"mail\";a:3:{s:6:\"__desc\";s:0:\"\";s:5:\"email\";s:18:\"eric@knudstrup.org\";s:4:\"body\";s:103:\"We would like to remind you of this upcoming event.\n\ntest\n\nLocation: \n\nDate: 04/10/2008\nTime: 04:00pm\n\n\";}}','test',NULL,'1970-01-01 00:00:00',0,'a:1:{s:4:\"mail\";a:1:{s:4:\"sent\";b:1;}}')
And how do the according entry or entries in the horde_alarms table look like?Sorry for the flood of separate messages.Here's the information for the event. I also just got an email notification for it:
Category Unfiled
Location test
Status Confirmed
Owner ektest
Start On 03/02/2008 6:00 am
End On 03/02/2008 7:00 am
Alarm 15 Day(s)
Created 01/31/2008 5:13 pm
Last Modified 01/31/2008 5:22 pm
When I select "Horde" on the left menu I get three or four popups in immediate succession.Also, disabling popups doesn't seem to disable them, even for this new account.
Okay, clean account. I just went back in and changed the notification for this event to be 15 days prior (it starts on 3/2). now I'm getting a popup for it whenever I cause a page reload.Here's my particulars:
Address Book Address Book (turba) H3 (2.2-RC1) Application is ready.
Calendar Calendar (kronolith) H3 (2.2-RC2) Application is ready.
Dynamic Mail Dynamic Mail (dimp) H3 (1.0-RC1) Application is ready.
Filters Filters (ingo) H3 (1.2-RC1) Application is ready.
Horde Horde (horde) 3.2-RC1 Application is ready.
Mail Mail (imp) H3 (4.2-RC1) Application is ready.
Mobile Mail Mobile Mail (mimp) H3 (1.1-RC1) Application is ready.
Notes Notes (mnemo) H3 (2.2-RC1) Application is ready.
Tasks Tasks (nag) H3 (2.2-RC1)
Accessing the test.php file for horde and kronolith says it's fine (PHP 5.2.5).
I just tried it with a test account and I do see an inline notification for an event starting next month.
Still trying to get the popups...
Priority ⇒ 2. Medium
State ⇒ Feedback
What Horde version are you using?
Can you reproduce this for a clean test account, or just your own? I've never seen this and never heard of anyone else seeing this.
Queue ⇒ Kronolith
Summary ⇒ Kronolith gives premature notifications
Type ⇒ Bug
Priority ⇒ 3. High
State ⇒ Unconfirmed
I am receiving notifications for alarmed events which are months in the future.I also receive popups even though I have disabled popups in my preferences.
These popups come every time I "reload" the browser or switch to a different Horde Application.
I am using Firefox 1.5.0.10 from Fedora Core 6.