Re: AxKit and Apache version
On Sunday 03 February 2008 17:08:27 Martin Oldfield wrote: Matt Sergeant writes: On 3-Feb-08, at 4:47 AM, Vaclav Barta wrote: On Sunday 03 February 2008 01:11:57 Matt Sergeant wrote: Nope. Your best bet is to proxy through Apache2 onto an Apache 1.3.x backend with AxKit on. Well, that works, but reminds me I really should upgrade libxml2... There are new versions of XML::LibXML XML::LibXSLT - is there AxKit 1.x that's compatible with them? See the patch recently posted to the list by Martin Oldfield. Besides that, you'll also probably want this one: Well, they aren't enough. :-( The patched AxKit-1.7 (patch attached) on top of XML::LibXML-1.66, XML::LibXSLT-1.66, libxml2-2.6.30-r1 (gentoo ebuild) and libxslt-1.1.22 (also gentoo) fails with Mon Feb 4 10:11:38 2008] [error] [client 127.0.0.1] [AxKit] [Error] /german/style/frame-util.xsl:1: parser error : Document is empty\n\n^\n/german/style/frame-util.xsl where the XSL file is valid (provided the path is Apache htdocs path) and works with AxKit-1.62. Of course, there's always more combinations to try - do you have a working one? Bye Vasek -- http://www.mangrove.cz/ Open Source integration diff -ur AxKit-1.7.orig/lib/Apache/AxKit/ConfigReader.pm AxKit-1.7/lib/Apache/AxKit/ConfigReader.pm --- AxKit-1.7.orig/lib/Apache/AxKit/ConfigReader.pm 2005-07-14 20:43:33.0 +0200 +++ AxKit-1.7/lib/Apache/AxKit/ConfigReader.pm 2008-02-04 09:32:10.0 +0100 @@ -18,6 +18,7 @@ package Apache::AxKit::ConfigReader; use strict; +use Apache::URI; # use vars qw/$COUNT/; Only in AxKit-1.7/lib/Apache/AxKit: ConfigReader.pm~ diff -ur AxKit-1.7.orig/lib/Apache/AxKit/Language/HtmlDoc.pm AxKit-1.7/lib/Apache/AxKit/Language/HtmlDoc.pm --- AxKit-1.7.orig/lib/Apache/AxKit/Language/HtmlDoc.pm 2005-07-14 20:43:34.0 +0200 +++ AxKit-1.7/lib/Apache/AxKit/Language/HtmlDoc.pm 2008-02-04 09:29:04.0 +0100 @@ -69,7 +69,8 @@ xsl:template match=text()xsl:value-of select=.//xsl:template /xsl:stylesheet EOX -my $stylesheet = XML::LibXSLT-parse_stylesheet($style_dom); +my $xslt = XML::LibXSLT-new; +my $stylesheet = $xslt-parse_stylesheet($style_dom); my $results = $stylesheet-transform($dom); my $result; Only in AxKit-1.7/lib/Apache/AxKit/Language: HtmlDoc.pm~ diff -ur AxKit-1.7.orig/lib/Apache/AxKit/Language/LibXSLT.pm AxKit-1.7/lib/Apache/AxKit/Language/LibXSLT.pm --- AxKit-1.7.orig/lib/Apache/AxKit/Language/LibXSLT.pm 2005-08-10 14:21:56.0 +0200 +++ AxKit-1.7/lib/Apache/AxKit/Language/LibXSLT.pm 2008-02-04 09:30:15.0 +0100 @@ -122,7 +122,8 @@ return $provider; }; -$stylesheet = XML::LibXSLT-parse_stylesheet($style_doc); + my $xslt = XML::LibXSLT-new; +$stylesheet = $xslt-parse_stylesheet($style_doc); unless ($r-dir_config('AxDisableXSLTStylesheetCache')) { $style_cache{$style-key()} = Only in AxKit-1.7/lib/Apache/AxKit/Language: LibXSLT.pm~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AxKit and Apache version
On Monday 04 February 2008 11:21:01 Martin Oldfield wrote: Vaclav Barta writes: On Sunday 03 February 2008 17:08:27 Martin Oldfield wrote: Matt Sergeant writes: Well, that works, but reminds me I really should upgrade libxml2... There are new versions of XML::LibXML XML::LibXSLT - is there AxKit 1.x that's compatible with them? See the patch recently posted to the list by Martin Oldfield. Besides that, you'll also probably want this one: Well, they aren't enough. :-( The patched AxKit-1.7 (patch attached) on top of XML::LibXML-1.66, XML::LibXSLT-1.66, libxml2-2.6.30-r1 (gentoo ebuild) and libxslt-1.1.22 (also gentoo) fails with Mon Feb 4 10:11:38 2008] [error] [client 127.0.0.1] [AxKit] [Error] /german/style/frame-util.xsl:1: parser error : Document is empty\n\n^\n/german/style/frame-util.xsl where the XSL file is valid (provided the path is Apache htdocs path) and works with AxKit-1.62. Of course, there's always more combinations to try - do you have a working one? What a bore! Presumably it would be trivial to run apache under strace to see if it really is trying to open the right file ? Well, strace gives stat64(/german/style/frame-util.xsl, 0xbf8dac74) = -1 ENOENT (No such file or directory) stat64(/var/www/localhost/htdocs/german/style/frame-util.xsl, {st_mode=S_IFREG|0644, st_size=25832, ...}) = 0 open(/var/www/localhost/htdocs/german/style/.htaccess, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) stat64(/var/www/localhost/htdocs/german/style/frame-util.xsl, {st_mode=S_IFREG|0644, st_size=25832, ...}) = 0 getgroups32(0, NULL)= 1 getgroups32(1, [65534]) = 1 open(/var/www/localhost/htdocs/german/style/frame-util.xsl, O_RDONLY| O_LARGEFILE) = 4 which has at least a potential of being right... I'm successfully doing XSLT stuff on a Debian box: These are standard Debian etch packages: Package: libxml2 Version: 2.6.27.dfsg-2 Package: libxslt1.1 Version: 1.1.19-1 Package: libxml-libxslt-perl Version: 1.59-1 Ah, so you might also have a vulnerable libxml2 (see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6284 ) - unless Debian fixed it, of course... Bye Vasek -- http://www.mangrove.cz/ Open Source integration - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AxKit and Apache version
On Sunday 03 February 2008 01:11:57 Matt Sergeant wrote: On 2-Feb-08, at 1:58 PM, Jean-Michel Caricand wrote: I'm new with AxKit. I have a little question. Can I use AxKit 1.7.0 with mod_perl 2 ? Nope. Your best bet is to proxy through Apache2 onto an Apache 1.3.x backend with AxKit on. Well, that works, but reminds me I really should upgrade libxml2... There are new versions of XML::LibXML XML::LibXSLT - is there AxKit 1.x that's compatible with them? Bye Vasek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AxKit and Apache version
On 3-Feb-08, at 4:47 AM, Vaclav Barta wrote: On Sunday 03 February 2008 01:11:57 Matt Sergeant wrote: On 2-Feb-08, at 1:58 PM, Jean-Michel Caricand wrote: I'm new with AxKit. I have a little question. Can I use AxKit 1.7.0 with mod_perl 2 ? Nope. Your best bet is to proxy through Apache2 onto an Apache 1.3.x backend with AxKit on. Well, that works, but reminds me I really should upgrade libxml2... There are new versions of XML::LibXML XML::LibXSLT - is there AxKit 1.x that's compatible with them? See the patch recently posted to the list by Martin Oldfield. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AxKit and Apache version
Hi, I'm new with AxKit. I have a little question. Can I use AxKit 1.7.0 with mod_perl 2 ? Cheers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AxKit and Apache version
On 2-Feb-08, at 1:58 PM, Jean-Michel Caricand wrote: I'm new with AxKit. I have a little question. Can I use AxKit 1.7.0 with mod_perl 2 ? Nope. Your best bet is to proxy through Apache2 onto an Apache 1.3.x backend with AxKit on. Matt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]