Page MenuHomePhabricator

Q232 on test.wikidata has InvalidArgumentException
Closed, DeclinedPublic

Description

https://test.wikidata.org/wiki/Q232 does not render

it appears to have been imported, so likely has mismatching property type in the entity json vs. what's in the wb_property_info table (and memcached) for some given id.

as this is such an edge case, not a blocker for deployment but should be we should find out for sure and more exactly why this occurs on Q232.

I also get an exception when using Special:Import on test.wikidata


Version: master
Severity: normal

Details

Reference
bz61913

Event Timeline

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

might be related to bug 61915 though not ready to mark as duplicate yet

we also get a ParseException on Q232 (which does appear in logs)

/w/api.php?action=wbparsevalue&format=json&parser=quantity&values=Q232&options=%7B%7D Exception from line 132 of /usr/local/apache/common-local/php-1.23wmf15/extensions/Wikidata/vendor/data-values/number/src/ValueParsers/QuantityParser.php: Malformed quantity: Q232
#0 /usr/local/apache/common-local/php-1.23wmf15/extensions/Wikidata/vendor/data-values/number/src/ValueParsers/QuantityParser.php(52): ValueParsers\QuantityParser->splitQuantityString('Q232')
#1 /usr/local/apache/common-local/php-1.23wmf15/extensions/Wikidata/vendor/data-values/common/src/ValueParsers/StringValueParser.php(51): ValueParsers\QuantityParser->stringParse('Q232')
#2 /usr/local/apache/common-local/php-1.23wmf15/extensions/Wikidata/extensions/Wikibase/repo/includes/api/ParseValue.php(85): ValueParsers\StringValueParser->parse('Q232')
#3 /usr/local/apache/common-local/php-1.23wmf15/extensions/Wikidata/extensions/Wikibase/repo/includes/api/ParseValue.php(55): Wikibase\Api\ParseValue->parseValue(Object(ValueParsers\QuantityParser), 'Q232')
#4 /usr/local/apache/common-local/php-1.23wmf15/includes/api/ApiMain.php(861): Wikibase\Api\ParseValue->execute()
#5 /usr/local/apache/common-local/php-1.23wmf15/includes/api/ApiMain.php(362): ApiMain->executeAction()
#6 /usr/local/apache/common-local/php-1.23wmf15/includes/api/ApiMain.php(333): ApiMain->executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.23wmf15/api.php(76): ApiMain->execute()

The item loads now. Given that importing items is not really supported at this point I am going to close this.

  • Bug 61915 has been marked as a duplicate of this bug. ***