Page MenuHomePhabricator

Fatal error in SnakSerializer
Closed, ResolvedPublic

Description

I apparently gave invalid input to wbsetreference and triggered a fatal error:

PHP fatal error in /usr/local/apache/common-local/php-1.22wmf10/extensions/Wikibase/lib/includes/serializers/SnakSerializer.php line 78: <br/>

Argument 1 passed to Wikibase\\Lib\\Serializers\\SnakSerializer::newFromSerialization() must be an array, string given, called in /usr/local/apache/common-local/php-1.22wmf10/extensions/Wikibase/repo/includes/api/SetReference.php on line 162 and defined

the api should handle this in a nicer way.


Version: master
Severity: normal

Details

Reference
bz51493

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:06 AM
bzimport set Reference to bz51493.
bzimport added a subscriber: Unknown Object (MLST).

Change 74109 had a related patch set uploaded by Aude:
(bug 51493) handle invalid json snak data in SetReference api module

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

Change 74109 merged by jenkins-bot:
(bug 51493) handle invalid json snak data in SetReference api module

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