After adding event with Recurrence Field itemIds() API is not returning proper events

Bug #1274792 reported by Kunal Parmar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtorganizer5-eds (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

After adding events with Recurrent field itemIds() API is not returning proper events.

But If i restart calendar it shows proper events. Please find the logs for both normal and abnormal case.

In not working case.
After adding recurring event.
EDS refresh the model and All recurring events are added with same start and end date with which original events was created.

Once this is done,
EDS is reloading the model again and this time it does not return any event for the original start and date time with which we created the event.

Please find log snippet below.

##################### Add event case (abnormal case) ######################

>>>>>>>>>>>>>>>>>>>> Calender instance is loaded here
$$$$$$$$$$$$$$$$$ Model reloaded....
intern.model.itemIds(startDate, endDate)
Start Date:Fri Jan 31 2014 00:00:00 GMT+0900 (KST)
End Date:Sat Feb 01 2014 00:00:00 GMT+0900 (KST)
itemIds length:0

>>>>>>>>>>>>>>>>>>>>> Adding recurrence event for 31 Jan

virtual bool QOrganizerEDSEngine::startRequest(QtOrganizer::QOrganizerAbstractRequest*)
void QOrganizerEDSEngine::saveItemsAsync(QtOrganizer::QOrganizerItemSaveRequest*)
...
static void QOrganizerEDSEngine::itemsAsyncStart(FetchRequestData*)

>>>>>>>>>> All recurrening events added to 31 Jan
$$$$$$$$$$$$$$$$$ Model reloaded....

intern.model.itemIds(startDate, endDate)
Start Date:Fri Jan 31 2014 00:00:00 GMT+0900 (KST)
End Date:Sat Feb 01 2014 00:00:00 GMT+0900 (KST)
itemIds length:48 <<<<<< 48 events are added to 31 Jan

++++++++++++ Event created:Recurrence 31
...
++++++++++++ Event created:Recurrence 31

>>>>>>>>>>>>> Something happed to EDS and model is refreshed
static void QOrganizerEDSEngine::itemsAsyncListed(ECalComponent*, time_t, time_t, FetchRequestData*)
...
static void QOrganizerEDSEngine::itemsAsyncStart(FetchRequestData*)

$$$$$$$$$$$$$$$$$ Model reloaded....
-------------- Event Destroyed:Recurrence 31
...
-------------- Event Destroyed:Recurrence 31

>>>>>>>>>>>>>>>>>>> 31 jan is returning now 0 events
intern.model.itemIds(startDate, endDate)
Start Date:Fri Jan 31 2014 00:00:00 GMT+0900 (KST)
End Date:Sat Feb 01 2014 00:00:00 GMT+0900 (KST)
itemIds length:0 <<<<<<<<<<<<<< now its returning 0 events for 31 jan

Related branches

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

Adding log for normal case

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtorganizer5-eds - 0.1.1+14.04.20140213-0ubuntu1

---------------
qtorganizer5-eds (0.1.1+14.04.20140213-0ubuntu1) trusty; urgency=low

  [ Renato Araujo Oliveira Filho ]
  * Fixed item it to contains the recurrence it. Correct parse for
    recurrence items to create the QOrganizerTodoOccurrence or
    QOrganizerEventOccurrence. This allow us to remove/edit a specific
    item in recurrence items. (LP: #1274792)
 -- Ubuntu daily release <email address hidden> Thu, 13 Feb 2014 19:22:33 +0000

Changed in qtorganizer5-eds (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.