Closed Bug 135192 Opened 24 years ago Closed 24 years ago

calendar does not pick up any events after the first in an iCalendar object

Categories

(Calendar :: Internal Components, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gary.frederick, Assigned: mostafah)

Details

Attachments

(4 files)

CalendarDataFile.ics saves each event as a iCalendar object. That's ok but not what the rfc comments as standard. from rfc 2445 4.4 iCalendar Object The Calendaring and Scheduling Core Object is a collection of calendaring and scheduling information. Typically, this information will consist of a single iCalendar object. However, multiple iCalendar objects can be sequentially grouped together. When I pointed the calendar app at a file with multiple events in iCalendar objects, it only read the first event in each iCalendar object.
This is for Mostafa. Gary: Can you attach a sample, properly formatted, .ics file?
Assignee: mikep → mostafah
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file CalendarDataFile.ics —
a calendar file that has several iCalendar objects. The first has several events in the iCalendar object.
Gary, if you can make calendar from cvs I have committed my first effort to read multiple VEVENTS in one VCALENDAR component. It still needs tweaks but you can start playing with it.
Status: NEW → ASSIGNED
OS: Linux → All
I went through rfc 2445 again and somehow realized that multiple events cannot be included in one iCalendar Object. So I guess we've been on the wrong track. 1) "... However, multiple iCalendar objects can be sequentially grouped together." Doesn't this just mean that we can have multiple VCALENDARS grouped together ( in a calendar file maybe )? Also: 4.6 Calendar Components The body of the iCalendar object consists of a sequence of calendar properties and one or more calendar components. The calendar properties are attributes that apply to the calendar as a whole. The calendar components are collections of properties that express a particular calendar semantic. For example, the calendar component can specify an event, a to-do, a journal entry, time zone information, or free/busy time information, or an alarm The body of the iCalendar object is defined by the following notation: icalbody = calprops component calprops = 2*( ; 'prodid' and 'version' are both REQUIRED, ; but MUST NOT occur more than once prodid /version / ; 'calscale' and 'method' are optional, ; but MUST NOT occur more than once calscale / method / x-prop ) >>>>>component = 1*(eventc / todoc / journalc / freebusyc / / timezonec / iana-comp / x-comp) iana-comp = "BEGIN" ":" iana-token CRLF 1*contentline "END" ":" iana-token CRLF x-comp = "BEGIN" ":" x-name CRLF 1*contentline "END" ":" x-name CRLF An iCalendar object MUST include the "PRODID" and "VERSION" calendar properties. In addition, it MUST include at least one calendar component. Special forms of iCalendar objects are possible to publish just busy time (i.e., only a "VFREEBUSY" calendar component) or time zone (i.e., only a "VTIMEZONE" calendar component) information. In addition, a complex iCalendar object is possible that is used to capture a complete snapshot of the contents of a calendar (e.g., composite of many different calendar components). More commonly, an iCalendar object will consist of just a single "VEVENT", "VTODO" or "VJOURNAL" calendar component ^^^^^^^^^^^^^^^^^^^^^^ Notice the 1* in front of eventc... What do you think Gary?
We can have one iCalendar object with at least one component (VEVENT here) BEGIN:VCALENDAR ... BEGIN:VEVENT ... END:VEVENT END:VCALENDAR It's ok to have multiple iCalendar objects BEGIN:VCALENDAR ... BEGIN:VEVENT ... END:VEVENT END:VCALENDAR BEGIN:VCALENDAR ... BEGIN:VEVENT ... END:VEVENT END:VCALENDAR BEGIN:VCALENDAR ... BEGIN:VEVENT ... END:VEVENT END:VCALENDAR three iCalendar objects with one component in each the standard also supports iCalendar objects with multiple components BEGIN:VCALENDAR ... BEGIN:VEVENT ... END:VEVENT BEGIN:VEVENT ... END:VEVENT BEGIN:VEVENT ... END:VEVENT END:VCALENDAR The above is an iCalendar object with three VEVENT components. The calendar needs to handle all the above. It was picking up the first component in each iCalendar object. Now it's picking up all the components. I'll come up with a few test cases.
example that has one iCalendar object that contains one event component
Attached file iCalendar test 2 —
two calendars - each with one event
Attached file test 3 —
one calendar with three events
I think this one can be closed.
All code is now in CVS and should handle multiple VEVENTS in a single iCalendar object.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Mass move of libxpical bugs to the Internal Components, per ctalbert.
Component: libxpical → Internal Components
The bugspam monkeys have been set free and are feeding on Calendar :: Internal Components. Be afraid for your sanity!
QA Contact: colint → base
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: