Last modified: 2012-06-12 10:51:56 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 T39487, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37487 - Error message doubly escaped in API
Error message doubly escaped in API
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-12 09:02 UTC by Nikola Smolenski
Modified: 2012-06-12 10:51 UTC (History)
2 users (show)

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


Attachments

Description Nikola Smolenski 2012-06-12 09:02:17 UTC
If you go to http://wikidata-test-repo.wikimedia.de/w/api.php?action=wblinksite&id=982&linksite=sr-el&linktitle=Helijum you will see <error code="unknown_linksite" info="Unrecognized value for parameter &#039;linksite&#039;: sr-el" xml:space="preserve">
Comment 1 jeblad 2012-06-12 10:44:41 UTC
This is escaped correctly inside xml, I believe. Check for example the JSON for an alternate encoding.
http://wikidata-test-repo.wikimedia.de/w/api.php?action=wblinksite&id=982&linksite=sr-el&linktitle=Helijum&format=jsonfm

It will produce
{
	"error": {
		"code": "unknown_linksite",
		"info": "Unrecognized value for parameter 'linksite': sr-el"
	}
}
Comment 2 Nikola Smolenski 2012-06-12 10:51:56 UTC
My mistake. Yes, it's the same on enwiki: http://en.wikipedia.org/w/api.php?action=xyz

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


Navigation
Links