CollectionId property is not saved properly after editing it

Bug #1299359 reported by Kunal Parmar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtorganizer5-eds (Ubuntu)
In Progress
Undecided
Renato Araujo Oliveira Filho

Bug Description

Event's collectionId is not saved using saveItem API.

 event.collectionId = calendarsOption.model[calendarsOption.selectedIndex].collectionId;

 internal.eventModel.saveItem(event);

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

####### qtorganizer:eds::system-calendar
####### Long event
####### qtorganizer:eds::system-calendar
####### Long event
virtual QtOrganizer::QOrganizerCollectionEngineId* QOrganizerEDSFactory::createCollectionEngineId(const QMap<QString, QString>&, const QString&) const
virtual bool QOrganizerEDSEngine::startRequest(QtOrganizer::QOrganizerAbstractRequest*)
void QOrganizerEDSEngine::saveItemsAsync(QtOrganizer::QOrganizerItemSaveRequest*)
static void QOrganizerEDSEngine::saveItemsAsyncStart(SaveRequestData*)
static ECalComponent* QOrganizerEDSEngine::parseEventItem(ECalClient*, const QtOrganizer::QOrganizerItem&)

<<<<<< Collection id edited >>>>>>>>>>>>>>>

####### qtorganizer:eds::1381841023.3278.2@kunal-sammy
####### Long event

static void QOrganizerEDSEngine::saveItemsAsyncModified(GObject*, GAsyncResult*, SaveRequestData*)
<<<<< Looks like some error
Fail to modify items Cannot modify calendar object: Object not found
static void QOrganizerEDSEngine::saveItemsAsyncStart(SaveRequestData*)

virtual bool QOrganizerEDSEngine::startRequest(QtOrganizer::QOrganizerAbstractRequest*)
void QOrganizerEDSEngine::itemsAsync(QtOrganizer::QOrganizerItemFetchRequest*)
virtual void QOrganizerEDSEngine::requestDestroyed(QtOrganizer::QOrganizerAbstractRequest*)
static void QOrganizerEDSEngine::itemsAsyncListed(ECalComponent*, time_t, time_t, FetchRequestData*)

static void QOrganizerEDSEngine::itemsAsyncListed(ECalComponent*, time_t, time_t, FetchRequestData*)
virtual bool QOrganizerEDSEngine::startRequest(QtOrganizer::QOrganizerAbstractRequest*)
void QOrganizerEDSEngine::itemsAsync(QtOrganizer::QOrganizerItemFetchRequest*)
virtual void QOrganizerEDSEngine::requestDestroyed(QtOrganizer::QOrganizerAbstractRequest*)
static void QOrganizerEDSEngine::itemsAsyncListed(ECalComponent*, time_t, time_t, FetchRequestData*)

static void QOrganizerEDSEngine::itemsAsyncListed(ECalComponent*, time_t, time_t, FetchRequestData*)

<<<<<<<<<< Collection id is not saved and is changed to old value
####### qtorganizer:eds::system-calendar
####### Long event
####### qtorganizer:eds::system-calendar
####### Long event
virtual void QOrganizerEDSEngine::requestDestroyed(QtOrganizer::QOrganizerAbstractRequest*)
virtual QOrganizerEDSEngine::~QOrganizerEDSEngine()
virtual SourceRegistry::~SourceRegistry() 0x9777a38

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Are you trying to change item colectionID? Or just create a new Item?

Could you produce a full example of the problem? And be aware of that not all collections in EDS support all kind the events. For example a TODO collection does not support a Normal event.

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

Hi,

Yes, I am trying to change CollectionId, it will be needed if we want to move event from work calendar to personal calendar or so.

And I used proper CollectionId, I mean used collection which is relevant to calendar.

I will try to provide some sample soon

Changed in qtorganizer5-eds (Ubuntu):
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
status: New → In Progress
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.