Last modified: 2014-02-18 13:48:09 UTC
According to the API documentation, wbgetentities should accept requests with: • one site for several titles, or • several sites for one title. However, patch 80797 changed the code to only allow: • one site and several titles, or • equal numbers of sites and titles. (see here: https://gerrit.wikimedia.org/r/#/c/80797/) So this request works fine: https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki|itwiki&titles=London|Berlin But this one returns an error: https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki|itwiki&titles=London It doesn't make sense, the older behavior should be restored.
I have submitted a patch that fixes this bug: https://gerrit.wikimedia.org/r/#/c/105511/1
Thanks, Mushroom! For future reference, see http://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines for formatting the commit message.
Thanks Andre, it was my first commit here. Next time I'll definitely follow the guidelines!
Change 105511 had a related patch set uploaded by Mushroom: Fix ItemByTitleHelper site/title combinations https://gerrit.wikimedia.org/r/105511
Change 105511 merged by jenkins-bot: Fix ItemByTitleHelper site/title combinations. https://gerrit.wikimedia.org/r/105511