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

"Reject" link in moderation e-mail to moderators results in crash / internal server error #1703

Closed
bboyle262 opened this issue Jul 25, 2023 · 6 comments · Fixed by #1704
Closed
Labels

Comments

@bboyle262
Copy link

Version

6.2.72-3.el7

Installation method

Cent7, RPM install, Mariadb, Postfix

Expected behavior

"Reject" URL in Moderation e-mail ("Message for list ... waiting to be approved") should succeed and reject the message

Actual behavior

After upgrading to latest sympa release, the 'reject' link generated by e-mails to moderators, results in the following crash / internal server error page rather than expected behavior:

"Internal Server Error
Sympa encountered an internal error.

Please contact the listmaster.

Error: Parameter $tpl is not defined at /usr/share/sympa/lib/Sympa/Message/Template.pm line 64.

Traceback
DIED: Parameter $tpl is not defined at /usr/share/sympa/lib/Sympa/Message/Template.pm line 64.
at /usr/share/sympa/lib/Sympa/Message/Template.pm line 64.
Sympa::Message::Template::new('Sympa::Message::Template', 'template', undef, 'data', HASH(0x49d70b0), 'context', Sympa::List <[email protected]>, 'rcpt', '[email protected]', ...) called at /usr/share/sympa/lib/Sympa/Spindle.pm line 42
Sympa::Spindle::new('Sympa::Spindle::ProcessTemplate', 'context', Sympa::List <[email protected]>, 'template', undef, 'rcpt', '[email protected]', 'data', HASH(0x49d70b0), ...) called at /usr/share/sympa/lib/Sympa.pm line 394
Sympa::send_file(Sympa::List [email protected]>, undef, '[email protected]', HASH(0x49d70b0)) called at /usr/libexec/sympa/wwsympa.fcgi line 7600
main::do_reject() called at /usr/libexec/sympa/wwsympa.fcgi line 1562"

Steps to reproduce

  1. Create new list, send/receive setup of "Private, moderated for non subscribers" (privateoreditorkey)
  2. Send e-mail to list from non-subscriber address which should trigger an e-mail to moderators of list, "Message for list from to be approved"
  3. Upon clicking the URL following, "To reject it (it will be removed):", the above error is returned by Sympa web interface.
  4. Other links in the e-mail work as expected, including the 'distribute' link

Additional information

This has been tested to occur across multiple lists, and multiple robots, on our main server. Behavior also replicated on our dev server with the same setup as listed above.

Thank you

@bboyle262 bboyle262 added the bug label Jul 25, 2023
@ikedas
Copy link
Member

ikedas commented Jul 26, 2023

Hi @bboyle262 ,

Could you please show any examples of the 'reject' link that causes problem?

@bboyle262
Copy link
Author

Screen Shot 2023-07-26 at 2 04 32 PM

Hello @ikedas

They all look like the attached.

Viewing the message source, URLs are coming through in plaintext pointing to same URL as displayed in the e-mail client.

@ikedas
Copy link
Member

ikedas commented Jul 27, 2023

Hi @bboyle262 ,

Could you please apply this patch and check if the problem will be solved? Thanks.

@bboyle262
Copy link
Author

The patch appears to have solved the issue. Thank you!

@SlothOfAnarchy
Copy link

SlothOfAnarchy commented Oct 27, 2023

Hi @bboyle262 ,

Could you please apply this patch and check if the problem will be solved? Thanks.

I can also confirm this patch solves the problem. Thank you @ikedas !

@phippsac
Copy link

phippsac commented Aug 8, 2024

Total noob here, if I want to apply this patch via the Linux patch command to what file do I apply it? Both default/web_tt2/confirm_action.tt2 and src/cgi/wwsympa.fcgi.in? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants