Page MenuHomePhabricator

Deleting statements from a cascade protected file results in a raw text HTML error from the API
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Go to a cascade protected file, such as those on the Wikimedia Commons main page
  • Click edit on a statement and remove it
  • Click publish

What happens?:
Ugly HTML from the API

Error from attempting to delete a statement on a cascade protected file (929×904 px, 67 KB)

What should have happened instead?:
It should be parsed as HTML

How an error from attempting to delete a statement on a cascade protected file should display (747×1 px, 39 KB)

The error is displayed correctly when you simply edit the statements, the API response appears to be the same for deleting or editing statements on a cascade protected file.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Similar to T209502, T248676, T244350