[kronolith] problems with exporting a calendar

Martin Kleinschmidt mk at theochem.uni-duesseldorf.de
Wed Nov 2 17:47:39 UTC 2011


Hi Michael,

On Mi, 02 Nov 2011, Michael J Rubinsky wrote:

>
>Quoting Martin Kleinschmidt <mk at theochem.uni-duesseldorf.de>:
>
>>On Mi, 02 Nov 2011, Jan Schneider wrote:
>>
>>>Zitat von Martin Kleinschmidt <mk at theochem.uni-duesseldorf.de>:
>>>
>>>>but in the webserver error log, I get
>>>>
>>>>[error] [client 134.99.82.26] client denied by server
>>>>configuration: /srv/www/htdocs/kronolith
>>>
>>>Why don't you look into your web server logs?
>>
>>I did.
>>see above for the error log.
>>
>>The access log did not tell me anything I could interpret as cause of
>>the error, but here it is:
>>
>>134.99.82.26 - - [02/Nov/2011:17:36:14 +0100] "GET /horde4/kronolith/data.php?actionID=export&all_events=1&exportID=101&exportCal=internal_mk
>>HTTP/1.1" 200 70632
>>134.99.82.26 - - [02/Nov/2011:17:36:16 +0100] "GET
>>/horde4/kronolith/themes/default/graphics/alerts/message.png
>>HTTP/1.1" 200 477
>>[skipped some more accesses to themes files]
>>134.99.82.26 - - [02/Nov/2011:17:36:16 +0100] "POST
>>/horde4/services/ajax.php/kronolith/listEvents HTTP/1.1" 200 291
>>134.99.82.26 - - [02/Nov/2011:17:36:16 +0100] "POST
>>/horde4/services/ajax.php/kronolith/listEvents HTTP/1.1" 200 128
>>134.99.82.26 - - [02/Nov/2011:17:36:16 +0100] "POST
>>/horde4/services/ajax.php/kronolith/listEvents HTTP/1.1" 200 103
>>
>>
>>If my current interpretation of the situation is right, kronolith
>>somehow generates an access to /kronolith instead of /horde4/kronolith
>
>That's not what this log is showing. It successfully reaches
>horde4/kronolith/data.php. 

agreed. 
But where does the access to /kronolith in the error log come from? 

>You will probably need to trace the code
>in kronolith/data.php to find out where it is failing.
>
>Use Horde::debug() statements somewhere in the 'export' case of the
>switch block starting on line 85.

alright....
found it:
in line 26, data.php has:

if (!$conf['menu']['import_export']) {
    require KRONOLITH_BASE . '/index.php';
    exit;
}

and setting (in the kronolith configuration)
Menu Settings
* $conf[menu][import_export]    
Should we display an Import/Export link in the Horde application menus?

to true, everything works as expected.

BUT: I would have never guessed this option working in this way.
As I already had found an Import/Export link, I thought this option
would only influence the Import/Export link to be shown in some
additional places.
Instead this option has NO effect at all on the Import/Export link to be
shown, but switches off the functionality of the (alwas displayed)
Import/Export link.
Probably this is not what is intended....?

anyways - thanks for pointing me to the right place to look at!




More information about the kronolith mailing list