Page MenuHomePhabricator

Validate that the images used in a story actually exist
Closed, ResolvedPublic

Description

When creating a story from the edit API or the no-js form, it is possible to provide file names that don't exist and that creates a broken story.

We should validate that the files exist in a configure repo and fail validation if they don't.

Event Timeline

SBisson triaged this task as Medium priority.
SBisson moved this task from Ready for Dev to Dev on the Inuka-Team (Kanban) board.

Change 790394 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/Wikistories@master] Validate that files used in story exist

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

Change 790394 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Validate that files used in story exist

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

Change 790704 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/Wikistories@master] Test: invalid story: file not found

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

Change 790704 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Test: invalid story: file not found

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