kewisch / wcap-provider

Sun Java System Calendar Server (WCAP) provider
0 stars 0 forks source link

Error: No trigger property for alarm on item (Bugzilla Bug 432464) #7

Open kewisch opened 16 years ago

kewisch commented 16 years ago

Bugzilla Bug 432464

Date: 2008-05-06T18:57:36+02:00 From: @blu28 Assigned To: nobody

Last updated: 2010-04-17T08:19:18+02:00

kewisch commented 16 years ago

Comment 3610923

Date: 2008-05-06 18:57:36 +0200 From: @blu28

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4v; en-US; rv:1.8.1.15pre) Gecko/20080427 Firefox/2.0.0.15pre Build Identifier: Lightning 0.8

I do not receive any alarms for any events, and the error console shows these errors:

Error: No trigger property for alarm on item

Reproducible: Always

Steps to Reproduce: Start up calendar. Actual Results:
No Alarms displayed.

Expected Results:
Some notification at event alarm time.

kewisch commented 16 years ago

Comment 3610931

Date: 2008-05-06 19:01:33 +0200 From: Stefan Sitter [:ssitter] <ssitter@gmail.com>

Was the event created with Lightning or with some other application? Please export the event in question to iCalendar format and attach the resulting .ics file here.

kewisch commented 16 years ago

Comment 3611231

Date: 2008-05-06 21:38:40 +0200 From: @dbo

Brian, if you are expecting popup alarms on WCAP calendars, I need to disappoint you: The servers cannot reliably store X-props on recurring items, thus we cannot store the popup alarm acknowledge stamps for WCAP. I am migrating any alarm definition to an email alarm which is sent out by the server.

kewisch commented 16 years ago

Comment 3611807

Date: 2008-05-07 03:09:45 +0200 From: @blu28

I have no problem with alarms not working per se, although it is disappointing. However, even if they do not work by design, I should not be getting errors in the error console that say: "Error: No trigger property for alarm on item"

kewisch commented 16 years ago

Comment 3611984

Date: 2008-05-07 06:50:52 +0200 From: @dbo

So you are actually using WCAP?

kewisch commented 16 years ago

Comment 3612096

Date: 2008-05-07 09:20:59 +0200 From: @dbo

BTW: the WCAP popup bug is bug #380423.

kewisch commented 16 years ago

Comment 3612321

Date: 2008-05-07 13:37:29 +0200 From: @blu28

Yes, I am using WCAP, at least as far as I know. I presume so, since that is what is supported on the Java Calendar Server.

kewisch commented 16 years ago

Comment 3612645

Date: 2008-05-07 18:52:26 +0200 From: @dbo

Seems the returned ical data of the server is incomplete, because TRIGGER is required: http://tools.ietf.org/rfcmarkup?doc=draft-ietf-calsify-rfc2445bis-08#section-3.6.6

It's sensible to state those errors. The error is handled gracefully in the code, the VALARM is just filtered out. Thus I'd say there's nothing to fix on our side...

kewisch commented 16 years ago

Comment 3612893

Date: 2008-05-07 20:42:04 +0200 From: @blu28

I enabled wcap logging and looked at each of the items. They all do have TRIGGER entries. On the other hand they are all entries of type VTODO, if that makes a difference.

Here is one of the offending items:

BEGIN:VTODO UID:00000000000000000000000000000000434d2c43000004d00000042b000014ef DTSTAMP:20080507T183309Z SUMMARY:Call Bill Matheson x49375 DTSTART;VALUE=DATE:20051012 COMPLETED:20071106T184442Z CREATED:20051012T153115Z LAST-MODIFIED:20080419T054553Z PRIORITY:0 SEQUENCE:1 PERCENT-COMPLETE:100 CLASS:PUBLIC ORGANIZER;CN="Brian Utterback" ;X-NSCP-ORGANIZER-UID=blu ;X-S1CS-CALID="blu" :mailto:Brian.Utterback@Sun.COM STATUS:COMPLETED X-NSCP-ORIGINAL-DTSTART:20051012T120000Z X-NSCP-LANGUAGE:en BEGIN:VALARM ACTION:EMAIL TRIGGER:P8D13068DT11H45M SUMMARY:Reminder: Call Bill Matheson x49375 ATTENDEE:MAILTO:Brian.Utterback@Sun.COM END:VALARM X-NSCP-DTSTART-TZID:America/New_York X-NSCP-TOMBSTONE:0 X-NSCP-ONGOING:0 X-NSCP-ORGANIZER-EMAIL:Brian.Utterback@Sun.COM X-NSCP-GSE-COMPONENT-STATE;X-NSCP-GSE-COMMENT="PUBLISH-COMPLETED":65538 END:VTODO

kewisch commented 16 years ago

Comment 3613069

Date: 2008-05-07 22:22:34 +0200 From: @dbo

Lightning (still) doesn't support absolute alarm trigger, but I wonder why you get into that specific code path.

kewisch commented 16 years ago

Comment 3639249

Date: 2008-05-28 20:28:24 +0200 From: Stefan Sitter [:ssitter] <ssitter@gmail.com>

Created attachment 322820 testcase

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15pre) Gecko/20080527 Calendar/0.9pre

Importing the attached testcase also triggers the error:

Error: No trigger property for alarm on item: <UID>
Source File: file:///.../sunbird/js/calItemBase.js
Line: 613

The alarm component looks like

BEGIN:VALARM 
ACTION:DISPLAY 
DESCRIPTION:REMINDER 
TRIGGER;RELATED=START:-PT00H15M00S 
END:VALARM

and was created by Outlook, see http://forums.mozillazine.org/viewtopic.php?p=3388639#3388639 for the original event.

Attached file: testcase.ics (text/plain, 427 bytes) Description: testcase

kewisch commented 16 years ago

Comment 3639282

Date: 2008-05-28 20:41:28 +0200 From: Stefan Sitter [:ssitter] <ssitter@gmail.com>

Please ignore the previous comment. Seems the issue was caused by trailing spaces on that lines, similar to Bug #421875. After removing the spaces the import works OK.

kewisch commented 14 years ago

Comment 4575100

Date: 2010-03-09 17:29:37 +0100 From: @kewisch

Looks to me like the WCAP server is not sending a correct trigger value. The error in the latest version is:

Error: Invalid alarm for item: 00000000000000000000000000000000434d2c43000004d00000042b000014ef (BEGIN:VALARM

ACTION:EMAIL

X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:Can't parse as TRIGGER value

in TRIGGER property. Removing entire property: P8D13068DT11H45M

SUMMARY:Reminder: Call Bill Matheson x49375

ATTENDEE:MAILTO:Brian.Utterback@Sun.COM

END:VALARM

) exception: [Exception... "'Illegal value' when calling method: [calIAlarm::icalComponent]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: file:///home/kewisch/mozilla/comm-central/obj-i686-pc-linux-gnu/mozilla/dist/bin/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/modules/calUtils.jsm -> file:///home/kewisch/mozilla/comm-central/obj-i686-pc-linux-gnu/mozilla/dist/bin/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calItemBase.js :: cIB_setItemBaseFromICS :: line 869" data: no]

Brian, could you retest with a more recent server patchlevel?