Sympa::Scenario::new() was unable to load scenario filename including dots #589
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are upgrading from Sympa 6.2.36 to 6.2.42.
After upgrading our test staging instance of Sympa we encountered an error while editing the liste config through the web interface:
The log says:
Here is what happens:
Sympa::Scenario->new()
fails to load a scenario namedvisibility.igr.univ-rennes1.fr
because only/\A[-\w]+\z/
if allowed for the scenario name,Sympa::Scenario::get_scenarios()
returns an array with some undefined values,wwsympa::_do_edit_list_request()
fails to interpret$_->get_current_title
because$_
is undefined.The bug was introduced in c8aca83
The pull request fixes (1):
Sympa::Scenario->new()
.It would also make sense to:
wwsympa::_do_edit_list_request()
in caseSympa::Scenario::get_scenarios()
returns undefined values.