Skip Menu |
 

This queue is for tickets about the MediaWiki-API CPAN distribution.

Report information
The Basics
Id: 122928
Status: rejected
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: richlv [...] nakts.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: repeated edits fail with "Invalid CSRF token"
Date: Wed, 30 Aug 2017 17:32:40 +0300
To: bug-MediaWiki-API [...] rt.cpan.org
From: Rihards <richlv [...] nakts.net>
Download (untitled) / with headers
text/plain 312b
logging in with the module, making edits to many pages sequentially. sometimes it works for a hundred of pages in a row, sometimes it fails after a few, few dozen or any other number of pages with : 3: badtoken: Invalid CSRF token. not sure whether the wrong token is sent, or what happens there. -- Rihards
Download (untitled) / with headers
text/plain 533b
On Wed Aug 30 10:42:35 2017, richlv@nakts.net wrote: Show quoted text
> logging in with the module, making edits to many pages sequentially. > sometimes it works for a hundred of pages in a row, sometimes it fails > after a few, few dozen or any other number of pages with : > > 3: badtoken: Invalid CSRF token. > > not sure whether the wrong token is sent, or what happens there.
i'm surprised this works at all - Mediawiki::API can't login at all in newer (1.22+) versions of Mediawiki, see https://rt.cpan.org/Public/Bug/Display.html?id=106214
Download (untitled) / with headers
text/plain 401b
On Wed Nov 22 19:56:30 2017, https://anarc.at/openid/ wrote: Show quoted text
> On Wed Aug 30 10:42:35 2017, richlv@nakts.net wrote:
Show quoted text
> > 3: badtoken: Invalid CSRF token.
Show quoted text
> i'm surprised this works at all - Mediawiki::API can't login at all in > newer (1.22+) versions of Mediawiki,
I have a test that performs 500 edits against a dockerized MediaWiki and I experienced one failure. I'm not sure who's fault it was.
Download (untitled) / with headers
text/plain 623b
On Wed Aug 30 10:42:35 2017, richlv@nakts.net wrote: Show quoted text
> logging in with the module, making edits to many pages sequentially. > sometimes it works for a hundred of pages in a row, sometimes it fails > after a few, few dozen or any other number of pages with : > > 3: badtoken: Invalid CSRF token. > > not sure whether the wrong token is sent, or what happens there.
Not sure the cause of this, but I have been using it for updating many pages, so it could be an issue with the install. As this is an old ticket, I will close but if you can reproduce, please open a new ticket providing more details of set-up and versions.
Download (untitled) / with headers
text/plain 105b
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.