Description
Details
Related Objects
Event Timeline
All the log entries I'm seeing are to requests core REST routes, e.g. /w/rest.php/v1/revision/2317716284/html. I don't think we're the best team to look into this.
Does Wikibase specify the output language when generating a ParserOutput object for a wikibase entity? Recording the actual output language in the ParserOutput is a relatively new feature (see https://gerrit.wikimedia.org/r/c/mediawiki/core/+/836297), so I suspect that Wikibase doesn't use it. That may cause the warning.
This warning dates from e7f21f6e6438 by @daniel; it looks like we now expect callers at this point to have set the language via calling setPageLanguage() on the helper. Obviously we can just hack back in the fallback language and revert Daniel's warning, but I imagine this wants actually fixing? Will push a patch adding a trace.
Change #1124106 had a related patch set uploaded (by Jforrester; author: Jforrester):
[mediawiki/core@master] HtmlOutputRendererHelper::getHtmlOutputContentLanguage: Add a stack trace for huntability
I had a look, and could repro locally (and plop a debugger in there).
The (probable) chain is ContentHandler::getParserOutput calls ContentHandler::fillParserOutput, which passes the $parserOutput as reference. fillParserOutput is overriden by Wikibase EntityHandler::fillParserOutput, which indeed does not set a language. Setting the language there fixes the issue (it's quite unclear to me *which* language we want there, so I'll let people who know have a proper look at it.)
I assume there's probably a similar thing on PropertyHandler, but I have not checked.
Of note: the issue only reproduces (on my setup) if I send a request without a Accept-Language header - otherwise the Accept-Language header is used as $targetLanguage somewhere in the HtmlOutputRendererHelper, and the ParserOutput language gets defined along the way.
Tagging Content-Transform-Team for awareness. Fixing this is best done by the Wikibase team.
Change #1131021 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] Set ParserOutput language in EntityHandler
Change #1131021 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Set ParserOutput language in FullEntityParserOutputGenerator
https://logstash.wikimedia.org/goto/92bdfde8121cc98a9b7cee445b010666 seems to show still ~1500 of these a day coming from Wikidata - I think it's worth re-opening this one, if only because James' "stack trace" patch is attached to it. (Feel free to re-close and if I'm wrong in my assessment, obviously.)
Change #1124106 merged by jenkins-bot:
[mediawiki/core@master] HtmlOutputRendererHelper::getHtmlOutputContentLanguage: Add a stack trace for huntability
