After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 496742 - CalDAV plugin not working - Wrong Content-Type check
CalDAV plugin not working - Wrong Content-Type check
Status: RESOLVED DUPLICATE of bug 514487
Product: evolution-data-server
Classification: Platform
Component: Calendar
1.12.x (obsolete)
Other All
: Normal major
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-11-14 13:45 UTC by Sven Anders
Modified: 2008-06-30 18:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
evolution-data-server-1.8.3-davical.patch (1.82 KB, patch)
2008-06-13 14:27 UTC, Kumaran Santhanam
none Details | Review
evolution-data-server-1.12.3-davical.patch (1.11 KB, patch)
2008-06-13 14:28 UTC, Kumaran Santhanam
none Details | Review

Description Sven Anders 2007-11-14 13:45:23 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
Comment 1 Kumaran Santhanam 2008-06-13 14:25:25 UTC
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.
Comment 2 Kumaran Santhanam 2008-06-13 14:27:01 UTC
Created attachment 112685 [details] [review]
evolution-data-server-1.8.3-davical.patch

Patch for evolution-data-server-1.8.3
Comment 3 Kumaran Santhanam 2008-06-13 14:28:26 UTC
Created attachment 112687 [details] [review]
evolution-data-server-1.12.3-davical.patch

Patch for evolution-data-server-1.12.3
Comment 4 Srinivasa Ragavan 2008-06-18 15:02:55 UTC
Gicmo: Can you review it?
Comment 5 Milan Crha 2008-06-23 13:01:41 UTC
We have the fix in trunk from bug #514487 already.
Comment 6 Matthew Barnes 2008-06-30 18:26:13 UTC
Closing as a dupe per comment #5.

*** This bug has been marked as a duplicate of 514487 ***