Page MenuHomePhabricator

JSON with JSONPath format handles absent data incorrectly
Closed, ResolvedPublicBUG REPORT

Description

JSON with JSONPath format handles absent data incorrectly.

An empty string is produced by {{#external_value:local variable}}, rather than an error message or default value, if the corresponding JSONPath is correct but yields no data from JSON.

Event Timeline

alex-mashin changed the task status from Open to In Progress.Sat, Oct 2, 6:50 AM
alex-mashin claimed this task.
alex-mashin triaged this task as Unbreak Now! priority.

Change 725395 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Handle missing JSONPath correctly.

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

Change 725395 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Handle missing JSONPath correctly.

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