Page MenuHomePhabricator

Call to constraintsrdf API returns error
Closed, ResolvedPublic

Description

When I go to https://www.wikidata.org/wiki/Q2?action=constraintsrdf, I get 500 status code. Logstash shows:

Unknown ViolationMessage argument type p!
/srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/ConstraintCheck/Message/ViolationMessageDeserializer.php:94
#0 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/ConstraintCheck/Message/ViolationMessageDeserializer.php(58): WikibaseQuality\ConstraintReport\ConstraintCheck\Message\ViolationMessageDeserializer->deserializeArgument(WikibaseQuality\ConstraintReport\ConstraintCheck\Message\ViolationMessage, array)
#1 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/ConstraintCheck/Result/CheckResultDeserializer.php(109): WikibaseQuality\ConstraintReport\ConstraintCheck\Message\ViolationMessageDeserializer->deserialize(array)
#2 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/ConstraintCheck/Result/CheckResultDeserializer.php(76): WikibaseQuality\ConstraintReport\ConstraintCheck\Result\CheckResultDeserializer->getViolationMessageFromSerialization(array)
#3 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/Api/CachingResultsSource.php(421): WikibaseQuality\ConstraintReport\ConstraintCheck\Result\CheckResultDeserializer->deserialize(array)
#4 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/Api/CachingResultsSource.php(351): WikibaseQuality\ConstraintReport\Api\CachingResultsSource->deserializeCheckResult(array, WikibaseQuality\ConstraintReport\ConstraintCheck\Cache\CachingMetadata)
#5 /srv/mediawiki/php-1.32.0-wmf.8/extensions/WikibaseQualityConstraints/src/Api/CheckConstraintsRdf.php(112): WikibaseQuality\ConstraintReport\Api\CachingResultsSource->getStoredResults(Wikibase\DataModel\Entity\ItemId)
#6 /srv/mediawiki/php-1.32.0-wmf.8/includes/actions/FormlessAction.php(43): WikibaseQuality\ConstraintReport\Api\CheckConstraintsRdf->onView()
#7 /srv/mediawiki/php-1.32.0-wmf.8/includes/MediaWiki.php(500): FormlessAction->show()
#8 /srv/mediawiki/php-1.32.0-wmf.8/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#9 /srv/mediawiki/php-1.32.0-wmf.8/includes/MediaWiki.php(864): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.32.0-wmf.8/includes/MediaWiki.php(524): MediaWiki->main()
#11 /srv/mediawiki/php-1.32.0-wmf.8/index.php(42): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): include(string)
#13 {main}

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptJun 27 2018, 8:34 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Smalyshev triaged this task as Normal priority.Jun 27 2018, 8:34 PM
Smalyshev updated the task description. (Show Details)
Smalyshev added a subscriber: Lucas_Werkmeister_WMDE.
Smalyshev updated the task description. (Show Details)Jun 27 2018, 8:55 PM

I see that master code has handling of ViolationMessage::TYPE_PROPERTY_SCOPE, but currently deployed code has not. This may be the result of deploying and then un-deploying of .10? I'll wait till the train goes through and re-try.

Smalyshev closed this task as Resolved.Jul 9 2018, 7:29 PM
Smalyshev claimed this task.

Seems to be fixed now.