[kronolith] Re: Free/busy (once again!)

Graeme Fowler graeme at graemef.net
Mon Mar 21 11:52:52 PST 2005


On Mon 21 Mar 2005 17:59:14 GMT , "John H. Bennett III"
<bennettj at thebennetthome.com> wrote:
> Check to make sure you have a default identity set for both of your users.  I
> struggled with this until I finally set them.

Yes, we do.

It appears that this is something to do with my Apache/PHP install - which is
PHP running as a CGI, with Horde as the document root.

kronolith/fb.php says:

// Determine the username to show free/busy time for.
if (!empty($_SERVER['PATH_INFO'])) {
    $cal = basename($_SERVER['PATH_INFO']);
} else {
    $cal = Util::getFormData('c');
    if (is_array($cal)) {
        $cal = implode('|', $cal);
    }
}

In my case env variables are as follows:

_ENV["QUERY_STRING"]	c=user1
_ENV["REQUEST_URI"]	/kronolith/fb.php?c=user1
_ENV["SCRIPT_NAME"]	/phpbin/php.cgi
_ENV["PATH_INFO"]	/kronolith/fb.php
_ENV["PATH_TRANSLATED"]	/home/user1/localbin/horde/kronolith/fb.php

So $_SERVER['PATH_INFO'] isn't empty, but it the gets processed through the
basename function to set $cal = "fb.php". The data then passed via the query
string is ignored.

I opened a bug (#1599) but Chuck closed it as BOGUS, agreeing with my 
alternate
supposition that what I said was rubbish. The problem is that I'm not 
the first
reporter of an empty file named "fb.php.vfb" being created, so I believe that
there *is* a bug in this code for the specific conditions under which I am
working.

I'm going to try it instead as a module, and see what that does.

Graeme



More information about the kronolith mailing list