[kronolith] Kronolith 3.0.9 : Remote calendar : error davical

Gerard Breiner gerard.breiner at ias.u-psud.fr
Thu Sep 15 09:04:18 UTC 2011


Le 14/09/2011 13:06, Jan Schneider a écrit :
>
> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>
>> Le 14/09/2011 11:24, Jan Schneider a écrit :
>>>
>>> Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:
>>>
>>>> Hello,
>>>>
>>>> I use kronolith 3.0.9 under horde 4.0.8. My server caldav is 
>>>> davical version 0.9.9.3 . I created a remote calendar toward my 
>>>> server davical 
>>>> (https://calendar.domain/caldav.php/username/agenda). When  I try 
>>>> to add an event from kronolith (client) to davical (server) I get 
>>>> the error
>>>> "The event could not be added to the remote server".
>>>>
>>>> The davical's logs says the content type is incorrect... It seems 
>>>> that expect to have xml content but is not.
>>>> Does caldav is full supported by kronolith 3.0.9 ?
>>>
>>> Yes.
>>>
>>>> Any help would be appreciated.
>>>>
>>>> Thanks in advance
>>>>
>>>> Gerard Breiner
>>>>
>>>> [LOGS]
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> NOTICE:Unusual content-type of "(null)" and first word of content 
>>>> is ""
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> :***************** Response Header ****************
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->X-Powered-By: PHP/5.3.3-7+squeeze1
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->Server: 0.9
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->DAV: 1, 2, 3, access-control, calendar-access, 
>>>> calendar-schedule
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->DAV: extended-mkcol, calendar-proxy, bind, addressbook
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->X-DAViCal-Version: DAViCal/0.9.9; DB/1.2.9
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> headers:-->Content-type: text/xml; charset="utf-8"
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> :******************** Response ********************
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> response:--><?xml version="1.0" encoding="utf-8" ?>
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> response:--><error xmlns="DAV:">
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> response:--> 
>>>> <urn:ietf:params:xml:ns:caldav:supported-calendar-data/>Incorrect 
>>>> content type for calendar:
>>>> [Mon Sep 12 11:21:32 2011] [error] [client x.x.x.x] DAViCal: LOG: 
>>>> response:--></error>
>>>> [LOGS]
>>>
>>> If possible, try to trace the communication between Kronolith and 
>>> DAViCal.
>> By using firebug ?
>
> No, Firebug only traces the communication between the browser and 
> Kronolith. Use something like wireshark.
>
>>> Jan.
>>>
>>
>> However, I've just made a try and the good news is it works very fine 
>> IF I comment in kronolith/lib/Driver/Ical.php the lines :
>>
>> [CODE]
>> 435          if (!in_array($response->code, array(200, 201, 204))) {
>> 436             Horde::logMessage(sprintf('Failed to create event on 
>> remote calendar: url = "%s", status = %s',
>> 437                                       $url, $response->code), 
>> 'INFO');
>> 438             throw new Kronolith_Exception(_("The event could not 
>> be added to the remote server."));
>> 439
>> [CODE]
>
> If commenting this out worked, you have a log entry in the horde log 
> that you didn't mention.
>
Here is :
2011-09-15T10:48:14+02:00 DEBUG: HORDE4 [kronolith] SQL  (0,0001s)
         SELECT object_id, object_name FROM `rampage_objects` WHERE 
object_name
           IN (NULL) AND type_id = 2 [pid 16916 on line 801 of 
"/www/horde4/pear/php/Horde/Db/Adapter/Base.php"]
2011-09-15T10:48:14+02:00 DEBUG: HORDE4 [kronolith] SQL  (0,0003s)
         SELECT * FROM horde_histories WHERE object_uid =
           'kronolith:https://calendar.domain/caldav.php/gbreiner/agenda:4
           e71bbce-c97c-4c08-a61b-421481af450f' [pid 16916 on line 801 
of "/www/horde4/pear/php/Horde/Db/Adapter/Base.php"]
2011-09-15T10:48:15+02:00 NOTICE: HORDE4 [kronolith] PHP ERROR: 
Undefined variable: url [pid 16916 on line 437 of 
"/www/horde4/kronolith/lib/Driver/Ical.php"]
2011-09-15T10:48:15+02:00 DEBUG: HORDE4 1. 
Horde_Core_Ajax_Application->doAction() /www/horde4/services/ajax.php:60
2. call_user_func() /www/horde4/pear/php/Horde/Core/Ajax/Application.php:95
3. Kronolith_Ajax_Application->saveEvent()
4. Kronolith_Ajax_Application->_saveEvent() 
/www/horde4/kronolith/lib/Ajax/Application.php:169
5. Kronolith_Event->save() 
/www/horde4/kronolith/lib/Ajax/Application.php:928
6. Kronolith_Driver->saveEvent() /www/horde4/kronolith/lib/Event.php:503
7. Kronolith_Driver_Ical->_addEvent() 
/www/horde4/kronolith/lib/Driver.php:282
8. Horde::errorHandler() /www/horde4/kronolith/lib/Driver/Ical.php:437

2011-09-15T10:48:15+02:00 DEBUG: HORDE4 [kronolith] 1. 
Horde_Core_Ajax_Application->doAction() /www/horde4/services/ajax.php:60
2. call_user_func() /www/horde4/pear/php/Horde/Core/Ajax/Application.php:95
3. Kronolith_Ajax_Application->saveEvent()
4. Kronolith_Ajax_Application->_saveEvent() 
/www/horde4/kronolith/lib/Ajax/Application.php:169
5. Kronolith_Event->save() 
/www/horde4/kronolith/lib/Ajax/Application.php:928
6. Kronolith_Driver->saveEvent() /www/horde4/kronolith/lib/Event.php:503
7. Kronolith_Driver_Ical->_addEvent() 
/www/horde4/kronolith/lib/Driver.php:282
8. Horde::errorHandler() /www/horde4/kronolith/lib/Driver/Ical.php:437
  [pid 16916 on line 240 of "/www/horde4/pear/php/Horde.php"]
INFO: HORDE4 [kronolith] Failed to create event on remote calendar: url 
= "", status = 412 [pid 16916 on line 437 of 
"/www/horde4/kronolith/lib/Driver/Ical.php"]
2011-09-15T10:48:15+02:00 DEBUG: HORDE4 [kronolith] L'événement ne peut 
être ajouté sur le serveur distant. [pid 16916 on line 27 of 
"/www/horde4/pear/php/Horde/Core/Notification/Handler/Decorator/Hordelog.php"]
2011-09-15T10:48:15+02:00 DEBUG: HORDE4 [kronolith] SQL  (0,0005s)
         SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods,
           alarm_params, alarm_title, alarm_text, alarm_snooze, 
alarm_internal
           FROM horde_alarms WHERE alarm_dismissed = 0 AND 
((alarm_snooze IS NULL
           AND alarm_start <= '2011-09-15T08:48:15') OR alarm_snooze <=
           '2011-09-15T08:48:15') AND (alarm_end IS NULL OR alarm_end >=
           '2011-09-15T08:48:15') AND (alarm_uid IS NULL OR alarm_uid = 
'' OR
           alarm_uid = 'gbreiner') ORDER BY alarm_start, alarm_end [pid 
16916 on line 801 of "/www/horde4/pear/php/Horde/Db/Adapter/Base.php"]
2011-09-15T10:48:15+02:00 DEBUG: HORDE4 [kronolith] Max memory usage: 
38535168 bytes [pid 16916 on line 474 of 
"/www/horde4/pear/php/Horde/Registry.php"]

>> Nevertheless, I guess the code 200 should be in this array cause 
>> firebug return it.
>
> That's irrelevant.
>
> Jan.
>
Best regards

Gerard


More information about the kronolith mailing list