← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 570048] Re: Mediawiki update breaks libmediawiki-perl

 

SRU verification for Lucid:
I have reproduced the problem with libmediawiki-perl 1.13-1.1 in lucid and have verified that the version of libmediawiki-perl 1.13-1.1ubuntu0.10.04.1 in -proposed fixes the issue.

I have run the script below and verified that the content is edited and
that the username (instead of the IP address) is displayed in the
history showing that 'Username' was logged in. I did the test with
wikipedia, if someone could test that it is still working with an older
release of mediawiki that would be perfect, but I think we can accept it
because Angars already did that test successfully.

-----8<--------8<--------8<--------8<--------8<--------8<-----
#! /usr/bin/perl

use MediaWiki;

my $c = MediaWiki->new;
$c->setup({
	wiki  => { host => "en.wikipedia.org", path => "w" },
});

print "login: " . $c->login("username", "password") . "\n";
my $pg = $c->get("User:Username/Sandbox", "rw");
print $pg->{content} . "\n";
$pg->{content} = "This text was modified by libmediawiki-perl at " . time();
print "save: " . $pg->save() . "\n";
print $pg->{content} . "\n";
print "PID was $$\n";

# verify revision history of Foo to see that 'user' was logged in

----->8-------->8-------->8-------->8-------->8-------->8-----

-- 
Mediawiki update breaks libmediawiki-perl
https://bugs.launchpad.net/bugs/570048
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libmediawiki-perl in ubuntu.



References