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

Error on closing a list that was already closed from command line #372

Closed
xavierba opened this issue Jul 11, 2018 · 2 comments
Closed

Error on closing a list that was already closed from command line #372

xavierba opened this issue Jul 11, 2018 · 2 comments
Labels
Milestone

Comments

@xavierba
Copy link
Contributor

xavierba commented Jul 11, 2018

Version

6.2.34

Installation method

rpm

Expected behavior

$sudo sympa.pl --close_list=test2
/var/lib/sympa/sympa_aliases: 5 aliases, longest 58 bytes, 316 bytes total
/etc/aliases: 84 aliases, longest 16 bytes, 890 bytes total
/etc/sympa/aliases.sympa.sendmail: 6 aliases, longest 53 bytes, 293 bytes total
close_list [notice] List has been closed
$ sudo sympa.pl --close_list=test2
close_list [error] List is already closed

Or whatever output, but not an error...

Actual behavior

$sudo sympa.pl --close_list=test2
/var/lib/sympa/sympa_aliases: 5 aliases, longest 58 bytes, 316 bytes total
/etc/aliases: 84 aliases, longest 16 bytes, 890 bytes total
/etc/sympa/aliases.sympa.sendmail: 6 aliases, longest 53 bytes, 293 bytes total
close_list [notice] List has been closed
$ sudo sympa.pl --close_list=test2
Can't use string ("user") as a HASH ref while "strict refs" in use at /usr/sbin/sympa.pl line 1079.

Additional information

The sympa log correctly reports that the list was already closed:
Jul 11 15:34:12 mail sympa[19917]: info main::_load() Configuration file read, default log level 0
Jul 11 15:34:12 mail sympa[19917]: notice main:: Sympa 6.2.34 Started
Jul 11 15:34:12 mail sympa[19917]: notice Sympa::Spindle::ProcessRequest::_twist() Processing Sympa::Request <action=close_list;current_list=[email protected]>
Jul 11 15:34:12 mail sympa[19917]: err main::#543 > Sympa::Spindle::spin#95 > Sympa::Request::Handler::close_list::_twist#67 List Sympa::List [email protected] is already closed: cannot close it again

@ikedas
Copy link
Member

ikedas commented Jul 12, 2018

@xavierba, can you check this PR?

@ikedas ikedas added the bug label Jul 12, 2018
@xavierba
Copy link
Contributor Author

@ikedas, I can confirm #373 fixes #372, thank you.

On an unrelated note, it was the first time I used the bug report template. I would place "Actual behaviour" before "Expected behaviour" rather than after. It seems more natural to me to first describe what is happening now, and only then describe what should have been happening. Oh, and also, there's a different spelling between American English (behavior) and English (behaviour). I don't know which one to choose, but it appears I naturally spell it 'behaviour'.

@ikedas ikedas added this to the 6.2.36 milestone Jul 14, 2018
@ikedas ikedas closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants