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.36: Crash of web interface when editing list moderators #456

Closed
sk-unikent opened this issue Oct 24, 2018 · 6 comments
Closed
Labels
Milestone

Comments

@sk-unikent
Copy link

sk-unikent commented Oct 24, 2018

Version

Sympa 6.2.36

Installation method

RPM

Expected behavior

When adding a list moderator to a list, the list moderator should be added, and no error should be displayed. This is done under the path /sympa/review/LISTNAME/editor, a form "Add moderators" is filled out and then "Update" is pressed, which currently results in the failure.

Actual behavior

Internal Server Error
Sympa encountered an internal error.

Please contact the listmaster.

Error: Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List/Users.pm line 75.

Traceback
DIED: Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List/Users.pm line 75.
at /usr/share/sympa/lib/Sympa/List/Users.pm line 75.
Sympa::List::Users::ANON(Sympa::List::Users [email protected], HASH(0xe23d748)) called at /usr/share/sympa/lib/Sympa/Config.pm line 672
Sympa::Config::_validate_changes(Sympa::List::Users [email protected], HASH(0xe23d748), ARRAY(0xea16580)) called at /usr/share/sympa/lib/Sympa/Config.pm line 285
Sympa::Config::submit(Sympa::List::Users [email protected], HASH(0xe224c48), '[email protected]', ARRAY(0xea16580)) called at /usr/libexec/sympa/wwsympa.fcgi line 4834
main::_review_user('editor') called at /usr/libexec/sympa/wwsympa.fcgi line 4791
main::do_review() called at /usr/libexec/sympa/wwsympa.fcgi line 1572

@sk-unikent
Copy link
Author

From maillog:
err main::#1572 > main::do_review#4791 > main::_review_user#4834 > Sympa::Config::submit#285 > Sympa::Config::_validate_changes#672 > Sympa::List::Users::ANON#75 DIED: Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List/Users.pm line 75.

@ikedas
Copy link
Member

ikedas commented Oct 25, 2018

Hi @sk-unikent,

Could you please check if this patch will solve the problem?

@sk-unikent
Copy link
Author

Hi @ikedas, thanks for the fast response!
I can confirm it resolves that particular issue but then I get:

ERROR (review) - Unable to reduce the number of list owners in required domains to 0. Domains that count toward the minimum requirement of 1: kent.ac.uk

I can confirm there are two owners under the Kent domain (I tried re-adding them) on this list... I'm trying to work out why 'owners' is null in the first place, but it seems like everything in the list config is in order.

@ikedas
Copy link
Member

ikedas commented Oct 26, 2018

Hi @sk-unikent,
Please throw previous patch away. Could you please check this patch?

@ikedas ikedas changed the title Sympa 6.2.36 error when adding list moderator - Can't use an undefined value as an ARRAY reference at /usr/share/sympa/lib/Sympa/List/Users.pm line 75. Sympa 6.2.36: Crash of web interface when editing list moderators Oct 26, 2018
@ikedas ikedas added the bug label Oct 26, 2018
@ikedas ikedas added this to the 6.2.38 milestone Oct 26, 2018
@sk-unikent
Copy link
Author

Yes that works as a workaround, thank you!
I can confirm from a test box the issue is also present in 6.2.37b

ikedas added a commit that referenced this issue Oct 26, 2018
Sympa 6.2.36: Crash of web interface when editing list moderators #456
@ikedas
Copy link
Member

ikedas commented Oct 26, 2018

Thanks @sk-unikent for confirming! This fix will be included in 6.2.37b.2 in the next month.

@ikedas ikedas closed this as completed Oct 30, 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