Skip to content
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

Sympa 6.2.61b.2 upgrade fails to rename blacklist.txt to blocklist.txt #1144

Closed
dpc22 opened this issue Apr 7, 2021 · 1 comment · Fixed by #1146
Closed

Sympa 6.2.61b.2 upgrade fails to rename blacklist.txt to blocklist.txt #1144

dpc22 opened this issue Apr 7, 2021 · 1 comment · Fixed by #1146
Labels
bug ready A PR is waiting to be merged. Close to be solved
Milestone

Comments

@dpc22
Copy link
Contributor

dpc22 commented Apr 7, 2021

Version

6.2.61b.2

Installation method

My own rpm, derived from "official" RHEL 7 source rpm

Expected behavior

Sympa upgrade process should rename search_filters/blacklist.txt to search_filters/blocklist.txt for every list in the system

Actual behavior

No blacklist.txt files are renamed.

Additional information

Pretty sure that this is just two simple typos in src/lib/Sympa/Upgrade.pm:

$ cd <sympa git repo>
$ git grep search_filter 
Makefile.am:            mail_tt2 scenari search_filters web_tt2; do \
doc/samples/README:employees.ldap is a named filter (should be located in ~sympa/etc/search_filters
src/cgi/wwsympa.fcgi.in:    my $file = $list->{'dir'} . '/search_filters/blocklist.txt';
src/cgi/wwsympa.fcgi.in:        my $dir = $list->{'dir'} . '/search_filters';
src/cgi/wwsympa.fcgi.in:    my $dir = $list->{'dir'} . '/search_filters';
src/lib/Sympa/Scenario.pm:            subdir => 'search_filters');
src/lib/Sympa/Scenario.pm:            subdir => 'search_filters');
src/lib/Sympa/Scenario.pm:            subdir  => 'search_filters',
src/lib/Sympa/Upgrade.pm:            'search_filter/blacklist.txt',
src/lib/Sympa/Upgrade.pm:                my $newfile = 'search_filter/blocklist.txt';

Note "search_filter/bl*" rather than "search_filters/bl*" on the last two lines. If I change those both to "search_filters" (plural) it works as I would expect.

I confess that I only noticed because I was attempting to adapt src/lib/Sympa/Upgrade.pm to also rename whitelist.txt to allowlist.txt (see my recent message to sympa-users). As a complete aside: I don't suppose there is an chance that Steve Shipway's whitelist patch could be merged: #992. This would make my life simpler. Is there anything that I could do to help with the merge process? Thanks.

ikedas added a commit to ikedas/sympa that referenced this issue Apr 8, 2021
@ikedas ikedas added the bug label Apr 8, 2021
@ikedas ikedas added this to the 6.2.62 milestone Apr 8, 2021
@ikedas
Copy link
Member

ikedas commented Apr 8, 2021

It's due to typos. @dpc22 , thanks for pointing it out!

@ikedas ikedas added the ready A PR is waiting to be merged. Close to be solved label Apr 8, 2021
ikedas added a commit that referenced this issue Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ready A PR is waiting to be merged. Close to be solved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants