[Rt-commit] rt branch, 4.0/sanity-check-url-config, updated. rt-3.9.7-1146-gc800c14
Shawn Moore
sartak at bestpractical.com
Thu Mar 3 02:05:43 EST 2011
The branch, 4.0/sanity-check-url-config has been updated
via c800c1498b983994a64c262229a321f282143f30 (commit)
from d90da0291be55147ba7e081d5b650916eba7203d (commit)
Summary of changes:
lib/RT/Interface/Web.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit c800c1498b983994a64c262229a321f282143f30
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 3 02:05:21 2011 -0500
"making the error message suggest a direction to fix might be good"
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index e3cbf2f..769217d 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1014,7 +1014,7 @@ sub ValidateWebConfig {
$_has_validated_web_config = 1;
if ($ENV{SERVER_PORT} != RT->Config->Get('WebPort')) {
- $RT::Logger->warn("The actual SERVER_PORT ($ENV{SERVER_PORT}) does NOT match the configured WebPort ($RT::WebPort)");
+ $RT::Logger->warn("The actual SERVER_PORT ($ENV{SERVER_PORT}) does NOT match the configured WebPort ($RT::WebPort). Perhaps you should Set(\$WebPort, $ENV{SERVER_PORT}) in RT_SiteConfig.pm, otherwise your internal links may be broken.");
}
if ($ENV{HTTP_HOST}) {
@@ -1022,17 +1022,17 @@ sub ValidateWebConfig {
my ($host) = $ENV{HTTP_HOST} =~ /^(.*?)(:\d+)?$/;
if ($host ne RT->Config->Get('WebDomain')) {
- $RT::Logger->warn("The actual HTTP_HOST ($host) does NOT match the configured WebDomain ($RT::WebDomain)");
+ $RT::Logger->warn("The actual HTTP_HOST ($host) does NOT match the configured WebDomain ($RT::WebDomain). Perhaps you should Set(\$WebDomain, '$host') in RT_SiteConfig.pm, otherwise your internal links may be broken.");
}
}
else {
if ($ENV{SERVER_NAME} ne RT->Config->Get('WebDomain')) {
- $RT::Logger->warn("The actual SERVER_NAME ($ENV{SERVER_NAME}) does NOT match the configured WebDomain ($RT::WebDomain)");
+ $RT::Logger->warn("The actual SERVER_NAME ($ENV{SERVER_NAME}) does NOT match the configured WebDomain ($RT::WebDomain). Perhaps you should Set(\$WebDomain, '$host') in RT_SiteConfig.pm, otherwise your internal links may be broken.");
}
}
if ($ENV{PATH_INFO} !~ /^\Q$RT::WebPath\E/) {
- $RT::Logger->warn("A requested path ($ENV{PATH_INFO}) does NOT fall within the configured WebPath ($RT::WebPath)");
+ $RT::Logger->warn("A requested path ($ENV{PATH_INFO}) does NOT fall within the configured WebPath ($RT::WebPath). You should fix your Set(\$WebPath, ...) setting in RT_SiteConfig.pm otherwise your internal links may be broken.");
}
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list