View Issue Details

IDProjectCategoryView StatusLast Update
0005506SOGoWeb Calendarpublic2022-04-28 15:47
Reporteralessice Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.5.0 
Fixed in Version5.6.0 
Summary0005506: Problem on event/task with annual repetition
Description

We detected the following bug in both the creation of an event and the creation of a task:

By creating an event/task with annual repetition and with repetition end after X occurrences, the events/activities created are always X-1.

For instance:

By creating a new task with annual repetition and with end repetition after 3 times, only 2 tasks are created, even if in the row source we can read:
RRULE:FREQ=YEARLY;COUNT=3

By creating a new task with annual repetition and with end repetition after 2 times, only 1 task is created, even if in the row source we can read:
RRULE:FREQ=YEARLY;COUNT=2

By creating a task that repeats annually and ends repeating after 1 time, no task is created.

We detect this bug only on annual repetition (monthly and weekly repetition are ok) and only on “end repetition after x times” option (“end repeat on date” option is ok).

TagsNo tags attached.

Activities

francis

francis

2022-04-27 14:14

administrator   ~0016007

How do you check the occurrences of your recurrent tasks or recurrent events?

The only place where you won't see all your occurrences is when you select "All" in the center list of events/tasks. This is a design choice. We actually limit the range to 1 year in the past and 1 year in the future.

alessice

alessice

2022-04-28 12:49

reporter   ~0016015

We check the occurrences of our recurrent tasks with the option “All” in the filters menu.

I’ve attached to this response two raw source file of two example.

TestYearly3.ics is a task with yearly repetition and end repetition after 3 times: after creating it, I can see just 2 occurrences (April 27 2022 and April 27 2023) and this is ok with what you said (limit the range to 1 year in the future).

TestYearly2.ics is a task with yearly repetition and end repetition after 2 times: after creating it, I can see just 1 occurrence (April 27 2022). I would expect to see also the second occurrence (April 27 2023) as I see it for TestYearly3.ics. Why can’t I see it?

Moreover, if I create a task with yearly repetition and end repetition after 1 time, no task at all is created. I understand that this last case can be seen as a borderline case, but I would expect that at least one task would be created.

TestYearly2.ics (703 bytes)   
BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 5.5.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Rome
LAST-MODIFIED:20210303T135712Z
X-LIC-LOCATION:Europe/Rome
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VTODO
UID:FEC-62696100-11F-62A09B80
SUMMARY:TEST YEARLY TASK 2
CLASS:PUBLIC
RRULE:FREQ=YEARLY;COUNT=2
DTSTART;TZID=Europe/Rome:20220427T173000
CREATED:20220427T152847Z
DTSTAMP:20220427T152847Z
LAST-MODIFIED:20220427T152847Z
END:VTODO
END:VCALENDAR
TestYearly2.ics (703 bytes)   
TestYearly3.ics (702 bytes)   
BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 5.5.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Rome
LAST-MODIFIED:20210303T135712Z
X-LIC-LOCATION:Europe/Rome
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VTODO
UID:7A45-62696180-8F-421E5E0
SUMMARY:TEST YEARLY TASK 3
CLASS:PUBLIC
RRULE:FREQ=YEARLY;COUNT=3
DTSTART;TZID=Europe/Rome:20220427T173000
CREATED:20220427T152924Z
DTSTAMP:20220427T152924Z
LAST-MODIFIED:20220427T152924Z
END:VTODO
END:VCALENDAR
TestYearly3.ics (702 bytes)   

Related Changesets

sogo: master 8fccd232

2022-04-28 15:30

francis


Details Diff
fix(calendar): fix yearly recurrence calculator with a finite rule

Fixes 0005506
Affected Issues
0005506
mod - SOPE/NGCards/iCalYearlyRecurrenceCalculator.m Diff File

Issue History

Date Modified Username Field Change
2022-04-27 07:47 alessice New Issue
2022-04-27 14:14 francis Note Added: 0016007
2022-04-28 12:49 alessice Note Added: 0016015
2022-04-28 12:49 alessice File Added: TestYearly2.ics
2022-04-28 12:49 alessice File Added: TestYearly3.ics
2022-04-28 15:47 francis Changeset attached => sogo master 8fccd232
2022-04-28 15:47 francis Assigned To => francis
2022-04-28 15:47 francis Resolution open => fixed
2022-04-28 15:47 francis Status new => resolved
2022-04-28 15:47 francis Fixed in Version => 5.6.0