[Rt-commit] rt branch, 4.2/lifecycle-right-name-length, created. rt-4.2.9-61-g1d24f0f

Alex Vandiver alexmv at bestpractical.com
Tue Dec 30 14:27:49 EST 2014


The branch, 4.2/lifecycle-right-name-length has been created
        at  1d24f0f62d9e46d14dacec7d93d7dd9a54855357 (commit)

- Log -----------------------------------------------------------------
commit 1d24f0f62d9e46d14dacec7d93d7dd9a54855357
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Dec 30 14:27:41 2014 -0500

    Warn on lifecycle rights that are too long
    
    Fixes: I#30344

diff --git a/lib/RT/Lifecycle.pm b/lib/RT/Lifecycle.pm
index e7b5e81..4e6797e 100644
--- a/lib/RT/Lifecycle.pm
+++ b/lib/RT/Lifecycle.pm
@@ -690,6 +690,9 @@ sub FillCache {
             warn "Invalid right name ($lifecycle->{rights}{$schema}) in $name lifecycle; right names must be ASCII"
                 if $lifecycle->{rights}{$schema} =~ /\P{ASCII}/;
 
+            warn "Invalid right name ($lifecycle->{rights}{$schema}) in $name lifecycle; right names must be <= 25 characters"
+                if length($lifecycle->{rights}{$schema}) > 25;
+
             $lifecycle->{rights}{lc($from) . " -> " .lc($to)}
                 = delete $lifecycle->{rights}{$schema};
         }

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


More information about the rt-commit mailing list