Page MenuHomePhabricator

Titles that cannot be unprotected on ptwiki
Closed, ResolvedPublicBUG REPORT

Description

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

  • I'm a sysop on ptwiki
  • All pages on this list are protected and cannot by created by non-autoreviewer users. All of them can be created by me, as a sysop.
  • All pages on this list are also protected and cannot by created by non-autoreviewer users. But, instead of protected as "editautoreviewprotected", they are protected as "autoreviewer" and neither sysops nor autoreviews can create them.

What happens?:

  • When I tried to unprotect (action=protect), it shows this message.
  • When I try to edit (action=edit), it shows this message.
  • When I try to undelete (Special:Undelete), the checkboxes of each revision doesn't appear.

I see that the wgRestrictionLevels for ptwiki on InitialiseSettings.php are different from T41652 (it was "autoreviewer", now its "editautoreviewprotected"), so it should be related to T230103.

Event Timeline

Mentioned in SAL (#wikimedia-operations) [2021-09-05T18:54:54Z] <urbanecm> wikiadmin@10.192.0.119(ptwiki)> update protected_titles set pt_create_perm='editautoreviewprotected' where pt_create_perm='autoreviewer'; # T290396

Urbanecm claimed this task.
Urbanecm subscribed.

This instance of the issue was fixed:

wikiadmin@10.192.0.119(ptwiki)> select count(*) from protected_titles where pt_create_perm='autoreviewer';
+----------+
| count(*) |
+----------+
|     1305 |
+----------+
1 row in set (0.00 sec)

wikiadmin@10.192.0.119(ptwiki)> begin;
Query OK, 0 rows affected (0.00 sec)

wikiadmin@10.192.0.119(ptwiki)> update protected_titles set pt_create_perm='editautoreviewprotected' where pt_create_perm='autoreviewer';
Query OK, 1305 rows affected (0.03 sec)
Rows matched: 1305  Changed: 1305  Warnings: 0

wikiadmin@10.192.0.119(ptwiki)> select count(*) from protected_titles where pt_create_perm='autoreviewer';
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.00 sec)

wikiadmin@10.192.0.119(ptwiki)> commit;
Query OK, 0 rows affected (0.00 sec)

The underlying issue is that the renameRestrictions maintenance script ignores protected_titles. I'll fill it up as a follow-up.