Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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

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

People
Owner: buzz [...] exotica.org.uk
Requestors: steevithak [...] gmail.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-1.334 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26)
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <1550384385.25832.3.camel [...] gmail.com>
X-Received: by 2002:a9d:4ca:: with SMTP id 68mr477381otm.96.1550384386182; Sat, 16 Feb 2019 22:19:46 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.334
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 65698240100 for <cpan-bug+MediaWiki-API [...] hipster.bestpractical.com>; Sun, 17 Feb 2019 01:19:52 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2FQRNIoAzb-c for <cpan-bug+MediaWiki-API [...] hipster.bestpractical.com>; Sun, 17 Feb 2019 01:19:51 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id DA9DE2400C2 for <bug-MediaWiki-API [...] rt.cpan.org>; Sun, 17 Feb 2019 01:19:50 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id B51797C1C3 for <bug-MediaWiki-API [...] rt.cpan.org>; Sat, 16 Feb 2019 22:19:49 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 62E9E7C1C5 for <bug-MediaWiki-API [...] rt.cpan.org>; Sat, 16 Feb 2019 22:19:48 -0800 (PST)
Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 114AB7C1C3 for <bug-MediaWiki-API [...] rt.cpan.org>; Sat, 16 Feb 2019 22:19:47 -0800 (PST)
Received: by mail-ot1-f45.google.com with SMTP id c18so1698350otl.13 for <bug-MediaWiki-API [...] rt.cpan.org>; Sat, 16 Feb 2019 22:19:47 -0800 (PST)
Received: from localhost.localdomain ([47.187.48.157]) by smtp.gmail.com with ESMTPSA id v20sm3756348oto.31.2019.02.16.22.19.45 for <bug-MediaWiki-API [...] rt.cpan.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Feb 2019 22:19:45 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: AHgI3IYM/fELgGq91TUJFuVnNaY/4E3oO7b5B4OxB5og/vEDZrG6aMMCc2/kYU2B6upIwMTNmF/1Hw==
Delivered-To: cpan-bug+MediaWiki-API [...] hipster.bestpractical.com
Subject: Can't log in to recent version of mediawiki
Return-Path: <steevithak [...] gmail.com>
X-RT-Mail-Extension: mediawiki-api
X-Original-To: cpan-bug+MediaWiki-API [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=KLWgYekHoDtsUCF+JJPm1xcPf0lUMQ44zYECJtTo6NY=; b=GrRpVEh+SKxR9w9rnEQPZXpIhXg/NHI/oso1Fjdtc8Cos//RnQhWusrSU2faZqmBh+ GL5rRjMVfzvmtFKzENFNb5Fiyb1pL171v/8DxRu7XeFZzADBBtVCZvUDut865ATKuhu/ Bp3M5Ejh9cvK9R891PYgEe+/jl+Rt8CGkKACNByUMBSzKAVSKASZ8OFfvX83CTu04iME EaqNSlkyHPfEOq8TkeY+EAXIZzyH33iWeYZIrsvGE8/VviQoeB55rTzjRiZIxFIei9af Zy8cxMD5Vyt4Rrp4CdIYHLpwA+zuGty+Cpvxd+OKvDHV2NhYrLhDGZdDZMJoZ2N6bZui zNfw==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=KLWgYekHoDtsUCF+JJPm1xcPf0lUMQ44zYECJtTo6NY=; b=cU9bwfRfKbjjQ+b/ePhur/K4HpY0QKZRXEY/jT4/43Bau6/nC+FUjaiTsBfKztedM/ ohwMyIE/ssrv5vnyC71fuHSQkaR6lPThPIwRjK09odzUFVmLQcWSkmJpRiHtvMjS/yzi VrrnL4RdrwhdJjiepXnb43rfyEeh/ZDaCbKMzd4dAwrS3FUc7JY/90ptwSQvFzU3IdUn hSYue+ot1HF5cbwwVrdNGWE8sBJYtxuXFhdsREeB82AGwbPNYmWeYUBa2810XnE7yUpx thDTz/nb9uLbc2sEcoUE+l+gbqBsba6VrA5VdNqAqv0q21jtB/1MISSAHsm5vI58TUgp THiA==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODYTEXTP_SIZE_400_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_200_299 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, DATE_TZ_NA 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SMALL_BODY 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HELO_GMAIL 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __PHISH_PHRASE_NL4 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __blackholes.mail-abuse.org_ERROR , __zen.spamhaus.org_ERROR '
Date: Sun, 17 Feb 2019 00:19:45 -0600
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.2.17.60916
To: bug-MediaWiki-API [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Steve Rainwater <steevithak [...] gmail.com>
X-GM-Message-State: AHQUAuafhSOLsbaCyeFDuTZlNqCtSkbg13IXL8A+v9+kMcJaQ/y2vxnm vNk0wK1dPYpovmSTKCjYrVMazfHG
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 282
Download (untitled) / with headers
text/plain 282b
It appears the MediaWiki::API library is no longer able to login correctly to mediawiki due to some change in the login API. I am able to login to a very old version of mediawiki that I installed locally (version 1.19) but I'm not able to login on any currently supported versions.
MIME-Version: 1.0
In-Reply-To: <1550384385.25832.3.camel [...] gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <1550384385.25832.3.camel [...] gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-18641-1564115420-1083.128532-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 498
Download (untitled) / with headers
text/plain 498b
I think this ticket can be closed. I was able to log in to the latest MediaWiki 1.33 with v0.41 of this module. Simple test script: #!/usr/bin/perl use MediaWiki::API; use Carp; use strict; use warnings; use version; our $VERSION = qv(0.1); my $mw = MediaWiki::API->new( { api_url => 'http://mediawiki-instance/api.php' } ); my $ret = $mw->login( { lgname => 'Username', lgpassword => 'validpassword' } ) || croak $mw->{error}->{code} . ': ' . $mw->{error}->{details}; carp Dumper( $ret );
MIME-Version: 1.0
In-Reply-To: <1550384385.25832.3.camel [...] gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <1550384385.25832.3.camel [...] gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14000-1606084326-607.128532-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 613
Download (untitled) / with headers
text/plain 613b
On Sun Feb 17 01:19:53 2019, steevithak@gmail.com wrote: Show quoted text
> It appears the MediaWiki::API library is no longer able to login > correctly to mediawiki due to some change in the login API. I am able > to login to a very old version of mediawiki that I installed locally > (version 1.19) but I'm not able to login on any currently supported > versions.
It worked for me ok with the previous version (It didn't send a token by default, but when the response requested a token). However I have just updated it (v0.51) to use the new token API calls and it works here ok with MediaWiki 1.35.0 so I'll mark this closed.


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.