Hi, some our users get the following error message when click on Manage button in Mailing list section:
Error: The form lifetime has expired. (request forgery check)
It started after upgrade to version 6.6. of webmin-virtualmin-mailman and version 19.07 or 19.08 of Authentic theme.
I'm using:
Virtualmin Pro 6.02-2
Webmin 1.872
Mailman 2.1.18
Debian 7.11.
I have been able to reproduce it, it occurs after making a login in the admin list interface using the "Manage" button. Occurs in all forms under "Membership Management ..." and its subsections (Membership List, Mass Subscription and Mass Removal), any action gets the error message.
In other sections of the administration of the list I can make changes without problems (General options, Privacy options ...). And when accessing the administration of the list from outside of Virtualmin the problem does not appear. It is only when the administration page of the list is embedded in Virtualmin.
Comments
Submitted by q7joey on Thu, 02/15/2018 - 10:59 Comment #1
i have reported the same for centos 7. in centos 6, trying to make changes via the virtualmin mailman interface results in them being silently ignored.
this is a real problem for configs where there is no local website, so virtualmin is the only way to manage the mailman configs.
Submitted by JamieCameron on Fri, 02/16/2018 - 23:00 Comment #2
Just tested on a fully updated CentOS 7 system - I wasn't able to re-produce this problem at all, sorry.
Submitted by q7joey on Sat, 02/17/2018 - 00:34 Comment #3
i can easily reproduce it. what some screen shots?
Submitted by JamieCameron on Sat, 02/17/2018 - 13:18 Comment #4
Yes, screenshots would be very useful.
Submitted by q7joey on Mon, 02/19/2018 - 11:30 Comment #5
ok, here is what i see after trying to change the moderation bit for a user.
Submitted by midol on Mon, 02/19/2018 - 19:04 Comment #6
I'm getting this too, ubuntu 14.04 VM Pro version 6.02-2 driving me nuts
Submitted by midol on Mon, 02/19/2018 - 20:17 Comment #7
From: Mark Sapiro mark@msapiro.net To: mailman-users@python.org Subject: Re: [Mailman-Users] two problems with Mailman 2.1 Date: Thu, 1 Feb 2018 15:12:44 -0800 Sender: "Mailman-Users" mailman-users-bounces+geek=uniserve.com@python.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
On 02/01/2018 12:41 PM, Dave Stevens wrote:
When you submitted the mass subscribe form the first time, did you get a response with a message at the top saying "successfully subscribed" or did it say something else.
You need to first get the form and then submit it within whatever the FORM_LIFETIME setting is in your installation. The default is one hour but could be different in your installation.
I suspect the issue is something else. I don't know what the issue might be, but one thing to check is to look at the HTML source of the admin/LIST_NAME/members/add page in your browser. The FORM tag in that source should be
If instead it is something like
And the URL in the address bar is different, i.e. a different domain or a different scheme (like https vs http) that might be an issue.
Is this your Mailman installation or a hosted installation?
Do other 'admin' and 'admindb' pages work? I.e. if you change something on the admin General Options page and submit, does it work or produce the same form lifetime error?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/geek%40uniserve.com
Submitted by midol on Wed, 02/21/2018 - 12:22 Comment #8
Jamie,
will this get addressed faster if I open a trouble ticket? My VMPro maoilman is suffering from this and client work can't go forward until it's corrected.
Dave
W
Submitted by q7joey on Wed, 02/21/2018 - 13:53 Comment #9
i just did some quick debugging and i can see that the csrf token is not getting passed into mailman, thus it is failing the test. i do see it being sent from the browser so it would appear to be getting eaten somewhere inside of the virtualmin mailman module. i'll go look there now.
Submitted by q7joey on Wed, 02/21/2018 - 14:00 Comment #10
hmm, one difference i see is that the membership page is using multipart/form-data and the other pages use the normal url-encoded format. i don't see logic in the virtualmin mailman module to cope with that. in fact it appears to be forcing the CONTENT_TYPE to be application/x-www-form-urlencoded so that would seem to be the source of the problem.
Submitted by midol on Thu, 02/22/2018 - 13:22 Comment #11
Hi Jamie, any progress on this??????????
Submitted by midol on Fri, 02/23/2018 - 14:00 Comment #12
does anyone know how I can get in touch with either Jamie Cameron or Joe Cooper? an email address would be great! TIA
Dave geek at uniserve dot com
Submitted by andreychek on Fri, 02/23/2018 - 18:11 Comment #13
This is the best place to get in touch with anyone on the Virtualmin team. Sorry for the delay!
We haven't made much progress on this issue yet, but will post any progress updates here as they happen.
Submitted by midol on Fri, 02/23/2018 - 18:47 Comment #14
thanks andreychek. I've been confused by the ui to open a trouble ticket, can you confirm if there's one open? or the correct url?
dave
Submitted by andreychek on Fri, 02/23/2018 - 23:30 Comment #15
This here is a trouble ticket :-)
So you're good, Jamie just hasn't had a chance to sort out what's going on yet.
Submitted by JamieCameron on Sun, 02/25/2018 - 16:15 Comment #16
I've been looking into this, but have been unable to re-produce the problem!
Which theme version are you running there? Also, which browser?
Submitted by midol on Mon, 02/26/2018 - 11:02 Comment #17
virtualmin framed theme, don't know what version or where to find out. Firefox 58.0.2 on Linux Mint, checked with xombrero same problem.
Submitted by midol on Mon, 02/26/2018 - 11:03 Comment #18
jamie can I send you login creds so you can see at first hand??
Submitted by q7joey on Mon, 02/26/2018 - 11:05 Comment #19
please look at my comment about the type of post data. admin.cgi doesn't appear to cope with multipart input and just assumes urlencoded. i haven't dug further, but that would certainly seem to be an issue.
Submitted by midol on Thu, 03/01/2018 - 18:58 Comment #20
update? progress? any news? what am I gonna tell my customers who need this functionality you broke?
Submitted by JamieCameron on Sat, 03/03/2018 - 18:27 Comment #21
Ok, I found the cause of this eventually - it will be fixed in the next release of the Mailman plugin.
The patch can be seen here : https://github.com/virtualmin/virtualmin-mailman/commit/3c7c71e10c31ea61...
Submitted by q7joey on Wed, 03/14/2018 - 10:11 Comment #22
i don't think this fixes the issue. the error doesn't display, but changes don't actually take effect. i just applied this patch and tried to moderate a user and the setting didn't stick.
-
Submitted by q7joey on Thu, 03/15/2018 - 09:15 Comment #24
not sure how this got closed...
Submitted by midol on Thu, 03/15/2018 - 11:17 Comment #25
yes, good point, how can it be closed if it's still not working?
Submitted by JamieCameron on Thu, 03/15/2018 - 21:54 Comment #26
@q7joey (or anyone else who's seeing this) - on what Mailman admin page are setting not being saved?
Submitted by q7joey on Thu, 03/15/2018 - 22:24 Comment #27
This is on the Member Subscription Pages, where you can set moderation, digest, Etc Flags.
Submitted by JamieCameron on Sun, 03/18/2018 - 01:51 Comment #28
I did some more testing, and with the latest patch I run into the same issue ... but only when using the Authentic theme. Ilia, can you take a look at this?
Submitted by JamieCameron on Sun, 03/18/2018 - 01:51 Comment #29
Jamie, I have tried to make Mailman work but it failed to work out of the box on both Ubuntu and CentOS.
It would take more time to do it.
The only reason why it wouldn't work is, either broken HTML or, possibly checkboxes/radios ids that are hardcoded and expected to be the same.
I had to make the patch after 19.09 release, to fix having elements with the same id on the page.
Could anyone please to check if the latest Jamies patches above would work with Authentic Theme 19.09 by installing it simply running
./theme-update.sh -release:19.09
from theme directory?Clear browser's cache before trying please.
Afterwards you could run
./theme-update.sh
to get the latest version.Submitted by JamieCameron on Sun, 03/18/2018 - 19:41 Comment #31
Yeah, most of the HTML in the Mailman module actually comes from the Mailman CGI scripts - it isn't generated by Virtualmin code.
Do you think I should provide the fix around this problem?
Submitted by midol on Thu, 03/22/2018 - 06:09 Comment #33
yes certainly if you are able
I'm able to for sure, but it I need to make it run first.
Submitted by JamieCameron on Fri, 03/23/2018 - 23:43 Comment #35
Let me know when a new theme version is out that contains a fix for this..
I have managed to make Mailman work. I gotten to test it and it seems that the issue is not in the themes, as Virtualmin Framed Theme and other old themes also don't work.
To be more explicit, you can take a look at the video screen cast. Is that what others are getting? Videoscreencast.
It looks more like the bug in the Mailman itself.
I have applied the patch, by the way.
Submitted by q7joey on Wed, 03/28/2018 - 19:00 Comment #38
still having customers complain about this. also affect mass subscription.
Submitted by q7joey on Thu, 03/29/2018 - 11:43 Comment #39
i have done more digging and i think i have found another piece of the puzzle. it looks like the submit button value is not getting sent by the browser when wrapped by virtualmin. i see there is a submit event on the form and i'm guessing that is somehow stripping that value before it gets sent to the server. the mailman code is looking for the button value to determine what function to perform.
the previous fix of not stomping on the content-type header is also needed.
i'll continue digging, but maybe someone at virtualmin will be more familiar with that code and can quickly find the issue.
I'm familiar with this behavior - it's insane, in my humble opinion.
In case it's that, I will be able to fix it.
Okay, here is the thing. I ran Mailman UI from cPanel and it still doesn't work.
Example:
Going to Manage->Membership Management...->Mass Removals->Submit Your Changes - doesn't save the states of the radios (Send unsubscription acknowledgement to the user? and Send notifications to the list owner?).
It's not saved neither at Gray Theme nor at Authentic Theme, just as not in cPanel.
I also tried to send button text as value with the correspondent name - it doesn't work.
Is this Mailman bug?
Which part of the interface saves data at old themes that doesn't work under Authentic Theme? If there is such part of the UI, I will be able to fix it. Otherwise, I don't know what to fix. I'm not even sure that it's our bug.
Submitted by q7joey on Fri, 03/30/2018 - 09:01 Comment #42
mailman works fine in standalone mode. the example you use of mass removal isn't a place where state is stored. those radios only affect that submission. the places where things aren't working is on the membership management->membership list page when you try to change settings for an existing member. that is the page that is looking for the submit button value to be in the post data. there could be other pages with similar requirements. seems like the submit button should not be getting pruned in any case.
Oh, really. I see now.
It's easily doable, if so. When creating 19.00 I have created special work-arounds to deal with such odd cases, as they appear time after time in Webmin modules as well.
I will release 19.12 filixing it in few other very small things, in couple of days.
Submitted by midol on Fri, 03/30/2018 - 09:58 Comment #44
I'm not clear on this, version 19.12 of what?
Of the theme. I didn't test that part of the UI that Jamie stated that it worked.
Okay, first of all, I'm sorry that I didn't notice at once that you meant Management->Membership List section. I finally could reproduce an issue easily and fix that.
The issue wouldn't have happened at all, if Maillist developers didn't use non-standard uppercase value for type attribute, e.g.
type="SUBMIT"
. Now, the check that I made long time ago to add submit button's text as a value is case insensitive, and will work just fine.All that you need is to update the theme to the latest development version using theme's configuration. You will also need the latest version of Virtualmin Mailman module, that you can fetch by running
git clone https://github.com/virtualmin/virtualmin-mailman.git
. After cloning, you will have to find and replace#!/usr/local/bin/perl
to#!/usr/bin/perl
. You can do it by using File Manager replace feature. When done, replace it with your existing version of the module in Webmin dir (/usr/share/webmin).Good luck.
Submitted by q7joey on Fri, 03/30/2018 - 15:29 Comment #47
how soon should we expect all these changes to show up as normal updates? a quick attempt to update the theme says it wants usermin 1.740, so there seems to be some dependency bits and i'd rather wait until everything has been tested together.
Submitted by midol on Fri, 03/30/2018 - 16:53 Comment #48
Ilia,
when you refer to "the theme" is that Authentic? and what about other themes? I'm using Virtualmin Framed
I referred to Authentic Theme. Jamie stated that it worked on his side, so that's the way it is, I bet.
We'll do our best to make new releases as soon as possible.
Please tell me what I could improve, from your point of view, on Authentic Theme to make it suitable for you?
Submitted by midol on Fri, 03/30/2018 - 17:20 Comment #50
it's not that it's unsatisfactory but it's different and by not changing I don't need to learn about it. I've got lots else to do that's all.
Submitted by q7joey on Fri, 03/30/2018 - 19:10 Comment #51
i tried the fixed version of bundle.min.js and it breaks the ui on my install. so i think there are some dependencies that we'll have to wait for.
the error is get_server_data() is undefined.
Go to Theme's Configuration, and disable the option to also update Usermin, when running theme updates. Then you will have no warning, when force updating.
Submitted by q7joey on Thu, 04/05/2018 - 12:07 Comment #53
i just updated to usermin 1.741, updated authentic theme, and manually patched the mailman module and things are looking pretty good so far.
hopefully the mailman module update can be pushed asap so everyone can easily fix this issue.
Submitted by q7joey on Thu, 04/12/2018 - 11:29 Comment #54
still waiting for the mailman module update to be officially released.
I've rolled the new Mailman module. Let us know if the problem persists or anything else is amiss.
Submitted by nodo50 on Fri, 04/13/2018 - 06:31 Pro Licensee Comment #56
Hi, I have installed the version 6.7 of Mailman module.
Using Chrome 65.0.3325.181 on Mac Os 10.13.4 it works fine.
But using Firefox 59.0.2 on Mac Os 10.13.4 and Firefox ESR 52.7.3 on Debian 9.4 the error message doesn't appear, but the changes are not saved. I tested it checking and uncheking subscriptor properties on the Mailman list members, like "mod" checkbox.
I have tried cleaning cookies, broswer cache, logout, login with a different user...
Server software versions:
Debian 7.11
webmin-virtualmin-mailman 6.7
Virtualmin Pro 6.02-2 Pro
Webmin 1.881
Authentic Theme 19.12
Mailman 2.1.18
The only reason why this would happen is stuck cache. Make sure that you have latest Authentic Theme 19.12+ version installed as well.
Submitted by nodo50 on Fri, 04/13/2018 - 06:49 Pro Licensee Comment #58
Hi, I have tried with a new Firefox profile, cleaning the theme cache and using Authentic Teme 19.12 and 19.13-beta1. The same result, changes are not saving.
Odd. I checked it in my Firefox stable it it saved the state same way it does in Chrome.
Okay, be kind adding the screenshot of the page that doesn't save?
I have tested Mailman Administration/Membership Management.../Membership List -- changed checkboxes, clicked Submit Your Changes - result was saved.
Are you sure that you have updated everything?
Submitted by nodo50 on Fri, 04/13/2018 - 07:29 Pro Licensee Comment #60
OK, it seems the problem is in my side. I will repeat all the tests carefully, to see if I find any clue or solve the problem.
Submitted by midol on Fri, 04/13/2018 - 12:59 Comment #61
as of the most recent update to webmin virtuallmin mailman module my firefox changes take effect and save properly and persist and no errors. Thanks Jamie!
Submitted by q7joey on Fri, 04/13/2018 - 17:21 Comment #62
it looks like authentic theme has been rolled into the webmin package, so when can we expect that to be updated and pushed?
needing to go update systems manually is a pain, especially since git has to be installed. further, one system i tested on decided to update to a beta version even though i said release version.
I'll roll out 19.13 in a bit and ask Jamie, if he could build new Webmin/Usermin package.
Sorry for inconvenience.
Submitted by q7joey on Fri, 04/27/2018 - 17:22 Comment #64
saw a new virtualmin rpm roll out, but it doesn't include the new authentic theme...
Authentic Theme is part of Webmin package. Authentic Theme 19.14 will be shipped with Webmin 1.850 release.
I meant to say with Webmin 1.890. :)
Submitted by JamieCameron on Sun, 04/29/2018 - 14:01 Comment #67
I'll release a 1.882 devel version that also includes this theme fix.
Submitted by nodo50 on Sun, 06/07/2020 - 05:49 Pro Licensee Comment #68
Hi, is it possible this bug come again with webmin-virtualmin-mailman version version 6.9?
I have a similar behavior in my servers, the error message "The form lifetime has expired. (request forgery check)" doesn't appears but I can't save changes on the Mailman Membership Management page. If I access outside virtualmin to mailman web panel, the changes are saving fine.
With "outside" I mean https://server.domain.org:10000/virtualmin-mailman/unauthenticated/admin...
instead the manage button in Services - Mailing lists
I tested with:
Debian 8
webmin 1.942
webmin-virtual-server 6.09-3 (Pro)
webmin-virtualmin-mailman 6.9
mailman 1:2.1.18-2+deb8u6
best regards!
Submitted by JamieCameron on Sun, 06/07/2020 - 13:55 Comment #69
Nothing significant has changed in version 6.9 of the plugin that could trigger this..