Page MenuHomePhabricator

Literal HTML <ul><li> shown in case of an error while saving (here: page protected)
Closed, ResolvedPublic

Description

Very similar to T244350 and T209502, I think.

Screenshot_2020-03-27 File Pearl diver in his diving suit Thursday Island, 1932 (38899677964) jpg - Wikimedia Commons BETA.png (462×868 px, 40 KB)

Tested on Beta Commons in a private window.

(I also don’t understand why I can even attempt to edit a protected page, but that’s a different question.)

Event Timeline

This no longer seems like an issue. This particular case is not reproducible because it is no longer possible to attempt to edit captions/structured data when the file itself is protected, the edit button does not appear. And editing captions when the file is cascade protected results in the error correctly rendering as actual HTML.

Cascade protected error from editing captions (415×904 px, 22 KB)

Mentioned in SAL (#wikimedia-releng) [2021-10-18T09:41:24Z] <Lucas_WMDE> lucaswerkmeister-wmde@deployment-mwmaint01:~$ mwscript createAndPromote.php commonswiki --sysop --force 'Lucas Werkmeister (WMDE)' # T248676

This particular case is not reproducible because it is no longer possible to attempt to edit captions/structured data when the file itself is protected, the edit button does not appear.

And even if the file is only protected after you loaded the editing UI, the error gets shown correctly.

Screenshot 2021-10-18 at 11-42-10 File Icon for char 誅 lightcoral honeydew 32x32 png - Wikimedia Commons BETA.png (370×800 px, 42 KB)