Error
- mwversion: 1.40.0-wmf.14
- reqId: c0974980-fa3d-4e65-b944-f29f779b7381
- Find reqId in Logstash
[{reqId}] {exception_url} UnexpectedValueException: Invalid version string ""
from /srv/mediawiki/php-1.40.0-wmf.14/vendor/composer/semver/src/VersionParser.php(186) #0 /srv/mediawiki/php-1.40.0-wmf.14/vendor/composer/semver/src/Semver.php(39): Composer\Semver\VersionParser->normalize(string) #1 /srv/mediawiki/php-1.40.0-wmf.14/vendor/wikimedia/parsoid/src/Core/PageBundle.php(110): Composer\Semver\Semver::satisfies(NULL, string) #2 /srv/mediawiki/php-1.40.0-wmf.14/includes/Rest/Handler/ParsoidHandler.php(875): Wikimedia\Parsoid\Core\PageBundle->responseData() #3 /srv/mediawiki/php-1.40.0-wmf.14/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(92): MediaWiki\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array) #4 /srv/mediawiki/php-1.40.0-wmf.14/includes/Rest/Router.php(487): MWParsoid\Rest\Handler\PageHandler->execute() #5 /srv/mediawiki/php-1.40.0-wmf.14/includes/Rest/Router.php(406): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler) #6 /srv/mediawiki/php-1.40.0-wmf.14/includes/Rest/EntryPoint.php(191): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals) #7 /srv/mediawiki/php-1.40.0-wmf.14/includes/Rest/EntryPoint.php(131): MediaWiki\Rest\EntryPoint->execute() #8 /srv/mediawiki/php-1.40.0-wmf.14/rest.php(31): MediaWiki\Rest\EntryPoint::main() #9 /srv/mediawiki/w/rest.php(3): require(string) #10 {main}
Impact
I have no idea!
Notes
I somehow missed the error yesterday. It started happening with 1.40.0-wmf.14 deployment:
Wikimedia\Parsoid\Core\PageBundle->responseData() somehow invokes Composer semantic versioning system and bails out due to an empty version being given.
That is limited to rest queries asking for pagebundle and only occurs on parseXXXX hosts.