[Pkg-awstats-devel] Bug#432096: awstats: Produces invalid XML report page with BuildReportFormat=xhtml
Anssi Kolehmainen
anssi at aketzu.net
Sat Jul 7 13:42:07 UTC 2007
Package: awstats
Version: 6.6+dfsg-1
Severity: important
Tags: patch
Awstats fails to produce valid XHTML report page [1] when
BuildReportFormat=xhtml is set in main config and separate config files
[3] are used. This invalid XML causes iceweasel to barf and display "XML
Parsing Error" page.
It seems that line 1214 [2] in awstats.pl is hit when separate config
files are used and that causes awstats to produce "content" page instead
of frameset-page... only problem is that page gets <body> start tag but
no end tag where it should be.
Simple workaround is to comment out line in question and then everything
works fine. Considering that perl <5.6 must be ancient why is such
warning even needed?
Other patching possibility is to add detection for frameset page in
warning() around line 898.
1: http://localhost/cgi-bin/awstats.pl?config=myconfig
2: warning("Warning: Perl versions before 5.6 cannot handle nested
includes");
3: My awstats config is split into multiple files. There is
awstats.conf for common options and /etc/awstats.site1.conf with
Only/SkipFiles regexp for site A, /etc/awstats.site2.conf for site B
etc.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.20.1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages awstats depends on:
ii perl [libstorable-perl] 5.8.8-7 Larry Wall's Practical Extraction
Versions of packages awstats recommends:
ii libnet-xwhois-perl 0.90-3 Whois Client Interface for Perl5
-- no debconf information
More information about the Pkg-awstats-devel
mailing list