Changing wiki pages using mediawiki API doesn't work last days #4246

Closed
opened 2014-03-04 19:21:44 +00:00 by hhorak · 1 comment

= bug description =
I played with wikitools (1) a bit, a python mediawiki API library, since it will be definitely interesting for some automation tasks (about to include to fedora as well (2), testing RPM available at (3)).

I was able to connect, load and edit the page with that tool on the last Thursday, but last days (since cca this Saturday) I get "500: Internal Server Error" when trying to change the content of a testing page.

(1) https://github.com/alexz-enwp/wikitools

(2) https://bugzilla.redhat.com/show_bug.cgi?id=1071581

(3) http://koji.fedoraproject.org/koji/taskinfo?taskID=6590113

= bug analysis =
How to reproduce:

  1. get wikitools Python library from (1), (2) or (3)
  2. python> from wikitools import wiki
  3. python> from wikitools import page
  4. python> site = wiki.Wiki("https://fedoraproject.org/w/api.php")
  5. python> p=page.Page(site, title='User:Hhorak/draft/testingpage')
  6. python> site.login(username="your_fas", password="your_fas_pass")
  7. python> p.edit(appendtext='new text appended')

Actual results:

urllib2.HTTPError: HTTP Error 500: Internal Server Error

= bug description = I played with wikitools (1) a bit, a python mediawiki API library, since it will be definitely interesting for some automation tasks (about to include to fedora as well (2), testing RPM available at (3)). I was able to connect, load and edit the page with that tool on the last Thursday, but last days (since cca this Saturday) I get "500: Internal Server Error" when trying to change the content of a testing page. (1) https://github.com/alexz-enwp/wikitools (2) https://bugzilla.redhat.com/show_bug.cgi?id=1071581 (3) http://koji.fedoraproject.org/koji/taskinfo?taskID=6590113 = bug analysis = How to reproduce: 1. get wikitools Python library from (1), (2) or (3) 2. python> from wikitools import wiki 3. python> from wikitools import page 4. python> site = wiki.Wiki("https://fedoraproject.org/w/api.php") 5. python> p=page.Page(site, title='User:Hhorak/draft/testingpage') 6. python> site.login(username="your_fas", password="your_fas_pass") 7. python> p.edit(appendtext='new text appended') Actual results: urllib2.HTTPError: HTTP Error 500: Internal Server Error

This was caused by a bug introduced in mediawiki 1.19.12.
This has been solved after we just upgraded to mediawiki 1.19.13.

This was caused by a bug introduced in mediawiki 1.19.12. This has been solved after we just upgraded to mediawiki 1.19.13.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#4246
No description provided.