Red Hat Bugzilla – Bug 110596
SiteBanner should be updated to use WebConfig, site-banner.xsl should likewise be fixed
Last modified: 2007-04-18 12:59:39 EDT
At the bottom of "/ccm/pvt/" there is the following note:
If you encounter any problems using example.com:9000,
please contact the site administrator.
where "example.com:9000" is linked to "http://example.com"
with no port number. The port number is lost because,
site-banner.xsl derives the URL from the "hostname" attribute
of the following element:
<ui:siteBanner admin="" hostname="example.com"
The attribute is produced by SiteBanner.java which relies
on the deprecated class KernelHelper.java. SiteBanner.java
should be updated to make use of WebConfig.java, and site-banner.xsl
should generated the correct URL.
In p4 37829, Justin made KernelHelper delegates to WebConfig. It looks
like there is a small change in the semantics of
KernelHelper#getHostName. Previously we always configured
kernel.Initializaer#hostname to include the port number, by the
delegation from KernelHelper only has the hostname.
As for 'sitename' attribute, this is controlled by waf.web.site_name
config param, which is setup to default to whatever
WebConfig#getServer().toString() returns. What is should contain is
the human friendly sitename, eg 'Red Hat CCM Demo' or whatever.
To be honest its probably time we removed KernelHelper altogether
since its been deprecated since 5.l core IIRC.