Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: hippytrail [...] gmail.com
Cc:
AdminCc:

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



Subject: please use JSON instead of JSON::XP
Date: Tue, 12 May 2009 08:50:02 -0500
To: bug-MediaWiki-API [...] rt.cpan.org
From: Andrew Dunbar <hippytrail [...] gmail.com>
The JSON module is pure Perl and compatible with JSON::XP. It uses JSON::XP when available and uses the pure Perl implementation when it's not. On the WikiMedia Toolserver JSON::XP is not currently installed. I edited MediaWiki::API.pm to use JSON instead of JSON::XP and now it works great. Please make it standard. Andrew Dunbar (hippietrail)
On Tue May 12 09:50:29 2009, hippytrail@gmail.com wrote: Show quoted text
> On the WikiMedia Toolserver JSON::XP is not currently installed. I > edited MediaWiki::API.pm to use JSON instead of JSON::XP and now it > works great. Please make it standard. > > Andrew Dunbar (hippietrail)
Please test this new version and let me know if it works for you. http://malus.exotica.org.uk/~buzz/cpan/MediaWiki-API-0.26.tar.gz
Subject: Re: [rt.cpan.org #45993] please use JSON instead of JSON::XP
Date: Tue, 12 May 2009 17:05:32 -0500
To: bug-MediaWiki-API [...] rt.cpan.org
From: Andrew Dunbar <hippytrail [...] gmail.com>
2009/5/12 Jools Smyth via RT <bug-MediaWiki-API@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=45993 > > > On Tue May 12 09:50:29 2009, hippytrail@gmail.com wrote:
>> On the WikiMedia Toolserver JSON::XP is not currently installed. I >> edited MediaWiki::API.pm to use JSON instead of JSON::XP and now it >> works great. Please make it standard. >> >> Andrew Dunbar (hippietrail)
> > Please test this new version and let me know if it works for you. > > http://malus.exotica.org.uk/~buzz/cpan/MediaWiki-API-0.26.tar.gz
Yes that one works thanks! I had found a much worse bug which made it die on windows if it recieved gzipped data. It worked fine if I forced it to send unzipped data, LWP on its own worked fine with gzipped data, and it works with gzipped data now that I've moved the project to a Toolserver shell account. If you can't reproduce that one let me know and I might be able to put some time into looking at it. Andrew Dunbar (hippietrail) -- http://wiktionarydev.leuksman.com http://linguaphile.sf.net
On Tue May 12 18:06:14 2009, hippytrail@gmail.com wrote: Show quoted text
> If you can't reproduce that one let me know and I might be able to put > some time into looking at it.
Please could you open a new bug report about it, and list the perl distribution you are running on windows. version 0.27 is in the upload queue and solves the JSON/JSON::XP issue. I'm closing this bug now. Thanks for your help.