I'm runing AxKit 1.6.2 on a FreeBSD box and am finding that when I have 
Caching turned on, and and output transformer set up, I get a zero sized 
response for any request made to my server. The debug logs show that all 
everything is happening just like it should... the last few lines lines 
look like this:

[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] 
delivering cached copy - all conditions met
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
Getting content-type
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
setting content-type: text/html; charset=UTF-8
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
Transforming content and printing to browser
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] 
delivering to browser
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] 
Delivering xml_string
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] writing 
xml string to cache and delivering to browser
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] [Cache] 
writing cache file /www/AxKitCache/ee/dc/9b603604450fa5bcebcb8d7f90ba
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
Getting content-type
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
setting content-type: text/html; charset=UTF-8
[Thu Apr 20 10:32:06 2006] [warn] [client 194.203.134.135] [AxKit] Cache: 
Transforming content and printing to browser

My output transformer is quite basic... just subsitutes a string for the 
username of the currently logged in user:

package VBTN::AxKit::Transformer;

use strict;
use warnings;

use Apache;

require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(axusername);
our $VERSION="1.0";

sub axusername {
        my $html = shift;
        my $session = Apache->request->pnotes ("SESSION");
        $html =~ s/<!--INSERT USERNAME 
HERE-->/$$session{'vbtn_access_user'}/;
        return $html;
}
1;

If I turn off caching, everything works fine and the output transformer 
does it's thing. I have read reports of similar behaviour on the maililng 
list archives, but these date back to 2002, when AxKit 1.6 was first 
released (see 
http://www.mail-archive.com/[email protected]/msg01810.html) but the 
sugested patch seems to already be in 1.6.2.

Does anyone have a patch that fixes this issue?
Has it been fixed in 1.7 (not that I am in a position to upgrade at the 
moment)?

many thanks

-- 
Tom Kirkpatrick
Web Developer - Virus Bulletin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to