Server error with rule on Combination
In 2.0.7, when configuring this rule for Comination, I ended with server errors:
if($env->{REMOTE_ADDR} =~ /^(10\.|11\.)/) then [Kerberos,LDAP] or [LDAP,LDAP] else [LDAP,LDAP]
The errors were:
Use of uninitialized value in subroutine entry at /usr/share/perl5/vendor_perl/Lemonldap/NG/Portal/Auth/Combination.pm line 229.
Use of uninitialized value in subroutine entry at /usr/share/perl5/vendor_perl/Lemonldap/NG/Portal/Auth/Combination.pm line 229.
[Fri Apr 10 18:47:03.249418 2020] [fcgid:warn] [pid 19122] [client 192.168.81.2:50380] mod_fcgid: stderr: Can't use string ("") as a subroutine ref while "strict refs" in use at /usr/share/perl5/vendor_perl/Lemonldap/NG/Portal/Auth/Combination.pm line 229.,
When parsing some vars to debug, I found that $stack
was quite empty:
$VAR1 = [
[
sub { "DUMMY" },
sub { "DUMMY" }
],
[]
];
But I am unable to reproduce this issue on another installation.
Does somebody has an idea of what could lead to this bug? In which condition could the stack be removed completely?