[CRM] Modify meeting via CalDAV

Bug #891548 reported by Ian Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

== Summary ==
When update meeting in calender software via CalDAV, client will receive 403 error.

== Setup and How to Reproduce ==
* Tested with a flash installation of OpenERP-server 6.0.3 with demo data, calendar sync by CalDAV enabled;
* Use a client softeware to sync the meeting calender ( Thunderbird + Lightning in my case);
* Open a synced meeting and try to do some modification ( I only change time every time) , you will received an "MODIFICATION FAILED" status with code 403.

== A little Digging ==
With debugging, we found this problem is occurred because both CalDAV module and orm tries to log the write_date of the record, we have the following in log:
ERROR:db.cursor:Programming error: multiple assignments to same column "write_date"
, in query update crm_meeting set "edit_all"=%s,"description"=%s,"date_deadline"=%s,"date"=%s,"vtimezone"=%s,"location"=%s,"recurrent_id"=%s,"class"=%s,"state"=%s,"base_calendar_url"=%s,"exdate"=%s,"write_date"=%s,"exrule"=%s,"base_calendar_alarm_id"=%s,"organizer"=%s,"duration"=%s,"name"=%s,write_uid=%s,write_date=now() where id IN %s

By the way, when using CalDAV, because we don't have context['lang'], we always get annoying debug info like:
DEBUG:translate:no translation language detected, skipping translation for "'AccessError'"
DEBUG:translate:no translation language detected, skipping translation for "'Operation prohibited by access rules, or performed on an already deleted document (Operation: %s, Document type: %s).'"

Tags: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Ian Li (ian.li) wrote :

Hello,

Here is a video of reproducing the error.

Regards,
Ian

Revision history for this message
Roberto López López (bergensk) wrote :

Hi,

Could you please check if you still have this error with the updated code?

Regards,

Roberto

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

Already fixed in addonsevision 4801, Revision ID: <email address hidden> .

Thanks,
Naresh Soni

Changed in openobject-addons:
status: New → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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