Page MenuHomePhabricator

Moving a page over a protected page results in no protection
Open, Needs TriagePublic

Description

Page [[Foo]] is protected
Page [[Bar]] not protected
Being an admin, move [[Bar]] to [[Foo]] with auto deletion of existing page.
[[Foo]] is no longer protected.
It should stay protected or at least ask to keep or remove the protection along with the deletion confirmation.

Experienced it twice while merging sandbox to main page in elwiki (I believed I reported it first time but it seems that I didn't).

Event Timeline

protections are based on pageids, not titles.

So the protection level of [[Bar]] stays as before the move, because moving an unprotected page over a protected redirect seems not a reason to protect the page. On the other way round, it could also mean moving the protected page to an unprotected page removes protection. That seems not the best way.