Last modified: 2014-10-14 15:39:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73907, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71907 - Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (redirlinks, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName().
Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (redirlinks, ....
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-10 06:46 UTC by Marios Magioladitis
Modified: 2014-10-14 15:39 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---
greg: Backport_WMF+


Attachments

Description Marios Magioladitis 2014-10-10 06:46:01 UTC
Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (redirlinks, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName().

I get this when trying to save via AWB in many pages.

https://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Bugs#error_message_appearing_when_saving
Comment 1 Marios Magioladitis 2014-10-10 12:02:13 UTC
Problem is in loading and on in saving. Problem occurs when trying to get backlinks.

It seems there's a problem with an API request for list=backlinks.

Reports:

https://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Bugs#error_message_appearing_when_loading_with_auto-tagger_on

https://en.wikipedia.org/wiki/Wikipedia_talk:WPCleaner#Error_when_getting_the_disambiguation_links_for_a_page

https://lists.wikimedia.org/pipermail/mediawiki-api/2014-October/003380.html

Copying from the email above:


For example, the request below returns now an internal API error, but it
was working correctly before.

Request:
https://fr.wikipedia.org/w/api.php?bltitle=BNF&action=query&blredirect=&list=backlinks&format=xml&bllimit=max

Result:
<?xml
version="1.0"?><api servedby="mw1053"><error
code="internal_api_error_MWException" info="Exception
Caught: Internal error in ApiFormatXml::recXmlPrint: (redirlinks, ...) has
integer keys without _element value. Use
ApiResult::setIndexedTagName()." xml:space="preserve" /></api>
Comment 2 Gerrit Notification Bot 2014-10-10 13:38:39 UTC
Change 166030 had a related patch set uploaded by Umherirrender:
Set redirlinks indexed tag name on list=backlinks

https://gerrit.wikimedia.org/r/166030
Comment 3 Gerrit Notification Bot 2014-10-10 14:17:57 UTC
Change 166030 merged by jenkins-bot:
Set redirlinks indexed tag name on list=backlinks

https://gerrit.wikimedia.org/r/166030
Comment 4 Gerrit Notification Bot 2014-10-10 14:53:15 UTC
Change 166051 had a related patch set uploaded by Anomie:
Set redirlinks indexed tag name on list=backlinks

https://gerrit.wikimedia.org/r/166051
Comment 5 Gerrit Notification Bot 2014-10-10 14:53:37 UTC
Change 166052 had a related patch set uploaded by Anomie:
Set redirlinks indexed tag name on list=backlinks

https://gerrit.wikimedia.org/r/166052
Comment 6 Greg Grossmeier 2014-10-10 15:37:24 UTC
Once the patches are merged then can be added to the next available SWAT window.
Comment 7 orlodrim 2014-10-10 19:03:49 UTC
The change that caused this (https://gerrit.wikimedia.org/r/#/c/155591/) also changed the JSON format: redirlinks used to be an array, now it's an object ("redirlinks":[{"pageid":1,"ns":0,"title":"Main Page"}] ==> "redirlinks":{"1":{"pageid":1,"ns":0,"title":"Main Page"}}). It was probably also not intended.
Comment 8 Gerrit Notification Bot 2014-10-10 19:28:14 UTC
Change 166085 had a related patch set uploaded by Anomie:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166085
Comment 9 Gerrit Notification Bot 2014-10-10 20:28:33 UTC
Change 166132 had a related patch set uploaded by Anomie:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166132
Comment 10 Gerrit Notification Bot 2014-10-10 20:28:54 UTC
Change 166133 had a related patch set uploaded by Anomie:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166133
Comment 11 Gerrit Notification Bot 2014-10-10 20:30:26 UTC
Change 166051 abandoned by Anomie:
Set redirlinks indexed tag name on list=backlinks

Reason:
I865aad6485a2598c9e574ab5c38e8e0923d11ddd instead

https://gerrit.wikimedia.org/r/166051
Comment 12 Gerrit Notification Bot 2014-10-10 20:30:36 UTC
Change 166052 abandoned by Anomie:
Set redirlinks indexed tag name on list=backlinks

Reason:
I865aad6485a2598c9e574ab5c38e8e0923d11ddd instead

https://gerrit.wikimedia.org/r/166052
Comment 13 Gerrit Notification Bot 2014-10-10 20:31:38 UTC
Change 166085 merged by jenkins-bot:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166085
Comment 14 Gerrit Notification Bot 2014-10-14 15:09:51 UTC
Change 166132 merged by jenkins-bot:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166132
Comment 15 Gerrit Notification Bot 2014-10-14 15:10:19 UTC
Change 166133 merged by jenkins-bot:
API: Fix ApiQueryBacklinks redirlinks

https://gerrit.wikimedia.org/r/166133

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links