-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topic names in topics.conf with uppercase are ignored #91
Comments
I tried to reproduce, same debug:
OS: CentOS 7.4 I think there should be grep -i (ignore case). |
Which database do you use @wouldsmina, @MargoM |
This should be the grep you are searching for: https://github.com/sympa-community/sympa/blob/master/src/lib/Sympa/List.pm#L8066 |
thank you @racke. |
I think you also need to lc($_) in index(...). |
not working too |
I'm wondering why you don't just lowercase "ADM" in topics.conf. I suppose it doesn't show in the UI anyway. |
I'm using MySQL. Like racke said, i think you should use uppercases in title/title.fr. This "ADM" is only stored in configuration file and in list_table table. |
that's what I did. I just wanted to inform about this unexpected behavior |
I suppose only lowercase topic names are expected. The behavior accepting uppercase topic names seems bug. |
ok. So I close this ticket. |
Reopened. If One solution is to normalize topic identifiers to lowercase. |
…munity#91 Now topic identfiers (names) in topics.conf will be normalized to lowercase.
Topic names in topics.conf with uppercase are ignored #91 by ikedas
Merged. This issue is closed. |
Hello,
No list is shown when selecting a topic with uppercase.
part of topics.conf :
Debug :
Oct 12 09:39:35 sympa wwsympa[9087]: debug3 Sympa::List::get_lists() filter (scalar(grep { $_ eq "adm" or index($_, "adm/") == 0 } @{$list->{"admin"}{"topics"} || []})); (topics_list LIKE '%,adm,%' OR topics_list LIKE '%,adm/%')
OS : DEBIAN 9
Sympa : 6.2.16
The text was updated successfully, but these errors were encountered: