You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
custom_vars should be usable in scenario rules as in prior versions of Sympa up to 6.2.44
Actual behavior
when using a custom_var in a scenario it's not possible to open any page belonging a list using a sceanario that contains an affected rule. Instead of the content of the page the following traceback is shown:
Internal Server Error
Sympa encountered an internal error.
Please contact the listmaster.
Error: Invalid [] range "s->" in regex; marked by <-- HERE in m/[custom_vars-> <-- HERE {sender_whitelist}]/ at (eval 989) line 1.
Traceback
DIED: Invalid [] range "s->" in regex; marked by <-- HERE in m/[custom_vars-> <-- HERE {sender_whitelist}]/ at (eval 989) line 1.
at (eval 989) line 1.
eval 'qr\'[custom_vars->{sender_whitelist}]\'' called at /usr/local/sympa/bin/Sympa/Scenario.pm line 686
Sympa::Scenario::_compile_condition(HASH(0x563c4be355e8)) called at /usr/local/sympa/bin/Sympa/Scenario.pm line 613
Sympa::Scenario::_compile_rule(HASH(0x563c4be355e8)) called at /usr/local/sympa/bin/Sympa/Scenario.pm line 576
Sympa::Scenario::_compile_scenario(Sympa::List <000-testliste-2@...>, 'send', HASH(0x563c4ba8ba98)) called at /usr/local/sympa/bin/Sympa/Scenario.pm line 245
Sympa::Scenario::compile(Sympa::List <000-testliste-2@l...>, 'title.gettext Testversion - Alle - Aber Nachrichten muessen f...', 'function', 'send', 'file_path', '/usr/local/sympa/etc/scenari/send.03b.editorkeyonly-test') called at /usr/local/sympa/bin/Sympa/Scenario.pm line 218
Sympa::Scenario::new('Sympa::Scenario', Sympa::List <000-testliste-2@...>, 'send') called at /usr/local/sympa/bin/wwsympa.fcgi line 2595
main::check_param_in() called at /usr/local/sympa/bin/wwsympa.fcgi line 1503
Interpolation in regexp is not possible on 6.2.52. ...Anyway, it has not been documented and seems not feature but side-effect of sloppy code. Please fix the scenario as:
Sympa is comlaining about scenarios with rules like this
Version
Sympa 6.2.52
Installation method
From source
Expected behavior
custom_vars should be usable in scenario rules as in prior versions of Sympa up to 6.2.44
Actual behavior
when using a custom_var in a scenario it's not possible to open any page belonging a list using a sceanario that contains an affected rule. Instead of the content of the page the following traceback is shown:
Additional information
OS: Debian GNU/Linux 9.11 (stretch)
Perl: 5.24.1-3+deb9u5
The text was updated successfully, but these errors were encountered: