GNOME Bugzilla – Bug 496742
CalDAV plugin not working - Wrong Content-Type check
Last modified: 2008-06-30 18:26:13 UTC
Please describe the problem: The CalDAV plugin reports the following error: "Object to fetch not of type text/calendar" My CalDAV server sent the following type: "Content-Type: text/calendar;charset=utf-8" (The charset was added automatically by the php5 engine). Steps to reproduce: 1. Install apache with PHP5 2. Install DAViCal (formerly RSCS) Server 3. Set option 'php_value default_charset "utf-8" ' for DAViCal virtual server 4. Create events in sunbird 5. Use evolution to show events Actual results: No events will be shown at all. Expected results: Show all my events The compare of the Content-Type should ignore any "charset" set. Does this happen every time? Yes Other information: (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: GET /caldav.php/anders/privat/uuid1183362499866.ics HTTP/1.1 Message-ID: 0x8086300 @ 1195046370 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Host: caldav.anduras.local (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: User-Agent: Evolution/1.12.0 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: 200 OK Message-Debug: 0x8086300 @ 1195046370 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Etag: "a41d51879dc42d8df6cbd92a014329bf" (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Date: Wed, 14 Nov 2007 13:19:28 GMT (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: X-Powered-By: PHP/5.1.2 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: X-RSCDS-Version: RSCDS/0.0.0; DB/1.1.9 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Server: Apache/2.0.55 (Ubuntu) PHP/5.1.2 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Content-Length: 1585 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Content-Type: text/calendar;charset=utf-8 (evolution-data-server-1.12:19131): e-cal-backend-caldav-DEBUG: Response: [BEGIN:VCALENDAR PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN VERSION:2.0 BEGIN:VTIMEZONE .... [more valid data deleted] ... CATEGORIES:Birthday END:VEVENT END:VCALENDAR ] (evolution-data-server-1.12:19131): e-cal-backend-caldav-WARNING **: Object to fetch not of type text/calendar (evolution-data-server-1.12:19131): e-cal-backend-caldav-WARNING **: Could not fetch object from server
I confirmed this behavior on: evolution-data-server-1.8.3 (Fedora 6) evolution-data-server-1.12.3 (Fedora 8) I developed a patch to fix the problem on both versions and will attach both. It would be much appreciated if this could be folded into a bug-fix release for these versions.
Created attachment 112685 [details] [review] evolution-data-server-1.8.3-davical.patch Patch for evolution-data-server-1.8.3
Created attachment 112687 [details] [review] evolution-data-server-1.12.3-davical.patch Patch for evolution-data-server-1.12.3
Gicmo: Can you review it?
We have the fix in trunk from bug #514487 already.
Closing as a dupe per comment #5. *** This bug has been marked as a duplicate of 514487 ***