Subject: Developers of Sympa
List archive
- From: Daniel Stoye <address@concealed>
- To: address@concealed
- Subject: [sympa-developpers] Bug in Topics List
- Date: Mon, 22 Feb 2016 12:50:31 +0100
Dear Dev-List,
i don't know if this is the right place, but as i'm not registered
with your bug tracker i'll try this way.
When listing all list that have a specific topic, for example:
sympaurl/lists/MyTopic
Sympa converts the topic name to lowercase in the get_lists method.
As i am using the filesystembackend, this yields no results.
Why? Because the topic name gets converted to lowercase and the perl_expr searches with a case sensitive grep.
I have fixed it locally with the following patch:
--- src/lib/Sympa/List.pm 2016-02-22 09:03:34.000000000 +0100
+++ src/lib/Sympa/List.pm 2016-02-22 10:26:14.017567862 +0100
@@ -8667,7 +8667,6 @@
push @expr_perl,
sprintf('$list->{"admin"}{"status"} eq "%s"', $ve);
} elsif ($k eq 'topics') {
- my $ve = lc $v;
if ($ve eq 'others' or $ve eq 'topicsless') {
push @expr_perl,
'! scalar(grep { $_ ne "others" } @{$list->{"admin"}{"topics"} || []})';
This does not affect users, who have SQL-Caching enabled, as this uses the 'LIKE' operator, which is case insensitiv.
Regards,
Daniel
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- [sympa-developpers] Bug in Topics List, Daniel Stoye, 02/22/2016
Archive powered by MHonArc 2.6.19+.