Page MenuHomePhabricator

ItemByTitleHelper Division by zero error
Closed, ResolvedPublic

Description

When running api.php?action=wbgetentities&sites=qwerty&titles=Berlin

I get:
Warning: Division by zero in C:\Users\user\Documents\git\mediawiki\extensions\Wikibase\repo\includes\api\ItemByTitleHelper.php on line 95
Call Stack
# Time Memory Function Location
1 0.0005 136128 {main}( ) ..\api.php:0
2 0.2116 2413440 ApiMain->execute( ) ..\api.php:73
3 0.2116 2413560 ApiMain->executeActionWithErrorHandling( ) ..\ApiMain.php:351
4 0.2120 2431344 ApiMain->executeAction( ) ..\ApiMain.php:380
5 0.3448 3093096 Wikibase\Api\GetEntities->execute( ) ..\ApiMain.php:840
6 0.3538 3182224 Wikibase\Api\ItemByTitleHelper->getEntityIds( ) ..\GetEntities.php:79


Version: master
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53036

Details

Reference
bz53037

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:58 AM
bzimport set Reference to bz53037.
Addshore created this task.Aug 19 2013, 1:36 PM

Change 80797 had a related patch set uploaded by Addshore:
Catch div zero error in ItemByTitleHelper

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

Change 80797 merged by jenkins-bot:
Restrict ItemByTitleHelper site/title combinations

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