Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 400589

Summary: www-misc/awstats-7.1-r2 uses plugin awgraph that isn't properly configured.
Product: Gentoo Linux Reporter: Olliver Schinagl <oliver>
Component: Current packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: RESOLVED UPSTREAM    
Severity: normal CC: web-apps
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Olliver Schinagl 2012-01-24 12:43:53 UTC
graphapplet.pm uses the following snipet to generate the html code for awstats.

print "<applet name=\"$type\" archive=\"awgraphapplet.jar\" code=\"AWGraphApplet.class\" codebase=\"".($DirClasses||"/")."\" width=\"$graphwidth\" height=\"$graphheight\" alt= \"Your browser does not support Java correctly. Change browser or disable AWStats graphapplet plugin.\">\n";

This will however not work and cause 404 errors.

There is a variable 'codebase' that lists $DirClasses, but does not get passed/honored. In /etc/awstats.site.conf the variable is passed as:
LoadPlugin="graphapplet /awstats/classes" but doesn't get used.

A quick hack is to change codebase=\"".($DirClasses||"/")."\" with \"".($DirClasses||"/awstats/classes")."\" if apache is setup with the /awstats/classes alias.

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-05-12 19:27:01 UTC
Please report this upstream. Thank you.