Page MenuHomePhabricator

wbgetentities not working with multiple sites
Closed, ResolvedPublic

Description

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.


Version: master
Severity: normal

Details

Reference
bz59676

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:19 AM
bzimport set Reference to bz59676.
bzimport added a subscriber: Unknown Object (MLST).

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