Page MenuHomePhabricator

Message 'jsonschema-invalid-notinenum' is being passed wrong parameters
Closed, ResolvedPublic

Description

The message 'jsonschema-invalid-notinenum' is being passed wrong parameters, at least sometimes (T123840).

$msg = JsonUtil::uiMessage( 'jsonschema-invalid-notinenum', $this->node, $this->getDataPathTitles() );

Where JsonUtil::uiMessage is a wrapper for wfMessage and $this->node is an array (possibly associative) representing current node. wfMessage interprets this array as message parameters, ignoring the second function call parameter. Not sure how this ever worked.

Event Timeline

matmarex raised the priority of this task from to Medium.
matmarex updated the task description. (Show Details)
matmarex added a subscriber: matmarex.

Change 264575 had a related patch set uploaded (by Bartosz Dziewoński):
Stringify message parameters for 'jsonschema-invalid-notinenum'

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

Change 264575 merged by jenkins-bot:
Stringify message parameters for 'jsonschema-invalid-notinenum'

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

matmarex removed a project: Patch-For-Review.
matmarex set Security to None.