GNOME Bugzilla – Bug 499180
BYDAY and BYMONTHDAY combination show to many entries
Last modified: 2009-10-15 14:24:28 UTC
Please describe the problem: if a remote iCalendar file contains an event with a RRULE which has BYDAY and BYMONTHDAY, the OR of both and not the AND is dispayed. Steps to reproduce: 1. create an iCalendar file which contains at least the following event: BEGIN:VEVENT UID:789846-4792384-423-def SUMMARY:Jeune genevois DTSTART;VALUE=DATE:19900906 CATEGORIES:Holiday RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=TH;BYMONTHDAY=5,6,7,8,9,10,11 END:VEVENT 2. load the file in evolution 3. check any September from 1991 on (eg 2007) Actual results: the event shows up on all Thursdays and on the days 5 to 11 Expected results: the event should only show up on the Thursday in the interval 5 to 11 Does this happen every time? Yes Other information:
there is a bug similar on https://bugs.launchpad.net/evolution/+bug/207708 "try to import the attached file file as ical in evolution this is the recurrency rule RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=12;BYDAY=SU;BYMONTHDAY=18,19,20,21,22,23,24 which accordingly to http://www.kanzaki.com/docs/ical/rrule.html (also tested in google calendar) means: every year, in december, on sunday, if the day of the month is one of 18,19,20,21,22,23,24 evolution interpretes this as a wired thing putting lots of events: the event is put on 21,22,23,24,28 december http://launchpadlibrarian.net/12920189/test.ics the Hardy version which is 2.22.0-0ubuntu2"
Created attachment 143620 [details] [review] proposed eds patch for evolution-data-server; Instead of merging two arrays use their intersection.
Created commit 22af109 in eds master (2.29.1+)