Skip Menu |

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

Report information
The Basics
Id: 130864
Status: resolved
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: sebastian [...] boethin.berlin
Cc:
AdminCc:

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



Subject: mustbeposted: The "purge" module requires a POST request
Date: Thu, 31 Oct 2019 00:14:25 +0100
To: bug-MediaWiki-API [...] rt.cpan.org
From: Sebastian Böthin <sebastian [...] boethin.berlin>
Hi, I get an error with action => 'purge':           'details' => 'mustbeposted: The "purge" module requires a POST request.',           'code' => 3,           'stacktrace' => 'mustbeposted: The "purge" module requires a POST request. at /var/www/idn.wiki/lib/MediaWiki-API-0.41/lib/MediaWiki/API.pm line 444. Can be avoided by setting 'undef $mw->{config}{get_actions}{purge}' So, apparently purge should not belong to get_actions at all? I am using mediawiki-1.33.0, MediaWiki-API-0.41. Best Regards Sebastian
On Wed Oct 30 19:23:36 2019, sebastian@boethin.berlin wrote: Show quoted text
> Hi, > > I get an error with action => 'purge': > >           'details' => 'mustbeposted: The "purge" module requires a > POST request.', >           'code' => 3, >           'stacktrace' => 'mustbeposted: The "purge" module requires a > POST request. at > /var/www/idn.wiki/lib/MediaWiki-API-0.41/lib/MediaWiki/API.pm line 444. > > > Can be avoided by setting 'undef $mw->{config}{get_actions}{purge}' > > So, apparently purge should not belong to get_actions at all?
I have removed it in v0.50 thanks. Please note that usually you are better to leave use_http_get option as default (0). It was requested by somebody, but it's safer to use just POST.