Hi Tom,

I encountered the same problem and posted a bug report along with a
patch: http://rt.cpan.org/Public/Bug/Display.html?id=17621

I have not tested it thoroughly but it appears to be ok.

Regards,
George

On Thu, Apr 20, 2006 at 11:38:17AM +0100, [EMAIL PROTECTED] wrote:
> 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]
> 

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This e-mailĀ­ and any files and attachments transmitted  with it are 
confidential and/or privileged. They are intended solely for the use of 
the intended recipient.  Any views and opinions expressed are those of 
individual author/sender and are not necessarily shared or endorsed by 
The Irish Times Limited, its subsidiary Itronics Limited, or any 
associated or related company. The content of this e-mail and any file 
or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended 
recipient, please note that any review, dissemination, disclosure, 
alteration, printing, circulation or transmission of this e-mail and/or 
any file or attachment transmitted with it, is prohibited and may be 
unlawful. If you have received this e-mail or any file or attachment 
transmitted with it in error please notify the sender by return e-mail 
or contact Itronics Limited, 4th floor, Ballast House, Aston Quay, 
Dublin 2 or email [EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

Reply via email to