[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-220-g0333900

Kevin Falcone falcone at bestpractical.com
Thu Oct 1 12:59:15 EDT 2009


The branch, 3.8-trunk has been updated
       via  03339008a34be52dea06308ff7ff275fd9d099e2 (commit)
       via  1a9ff7cad0fc6d6135f8e9e6bb64efd6064ec494 (commit)
      from  b5affb6f3334affbc9d29de215f68a5c054fbc3c (commit)

Summary of changes:
 bin/standalone_httpd.in |    1 +
 lib/RT/Config.pm        |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 1a9ff7cad0fc6d6135f8e9e6bb64efd6064ec494
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Thu Oct 1 12:56:29 2009 -0400

    Run the Config checks in standalone too

diff --git a/bin/standalone_httpd.in b/bin/standalone_httpd.in
index 20841a1..b87a332 100755
--- a/bin/standalone_httpd.in
+++ b/bin/standalone_httpd.in
@@ -122,6 +122,7 @@ EOF
     RT->InitSystemObjects();
     RT->InitClasses();
     RT->InitPlugins();
+    RT->Config->PostLoadCheck();
 
     my ($status, $msg) = RT::Handle->CheckCompatibility(
         $RT::Handle->dbh, 'post'

commit 03339008a34be52dea06308ff7ff275fd9d099e2
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Thu Oct 1 12:56:52 2009 -0400

    Warn when people have a space in their Organization

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 5b82326..1405a11 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -340,6 +340,18 @@ our %META = (
         }
     },
 
+    # this tends to break extensions that stash links in ticket update pages
+    Organization => {
+        Type            => 'SCALAR',
+        PostLoadCheck   => sub {
+            my ($self,$value) = @_;
+            $RT::Logger->error("got $value for organization");
+            if ($value =~ /\w/) {
+                $RT::Logger->error("your \$Organization setting ($value) appears to contain whitespace.  Please fix this.");
+            }
+        },
+    },
+
     # Internal config options
     DisableGraphViz => {
         Type            => 'SCALAR',

-----------------------------------------------------------------------


More information about the Rt-commit mailing list