Page MenuHomePhabricator

Undeleting a page that was protected when deleted should cause it to be reprotected
Closed, DuplicatePublic

Description

Now that protection changes show up in the history (which makes sort-of sense),
could the deletion and undeletion of a page with such history entries have the
desired effect on the page's protection status? For example, when undeleting a
page with some entries one of which makes it move-protected selected, the
newly-undeleted page should also be move-protected.

Not sure if deletion/undeletion makes absolute sense, but it's the logical
extension of having the protection settings' settings shown in the history (at
least, I just /tried/ to do it, expecting that behaviour).


Version: unspecified
Severity: enhancement

Details

Reference
bz5986

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:15 PM
bzimport set Reference to bz5986.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Protection status isn't stored with deleted content. If bug 4145 were
implemented, we could store it there, although we might face issues where
recreated pages were protected.

One workaround might be to wipe the protection status when the page is being
created (during EditPage::attemptSave()) and ignore restrictions on pages which
don't exist. This would, however stop us implementing nice unwiki features such
as preventing a page from being created, at least based around the protection tool.

robchur wrote:

*** Bug 6202 has been marked as a duplicate of this bug. ***

flcelloguy wrote:

(In reply to comment #1)

Protection status isn't stored with deleted content. If bug 4145 were
implemented, we could store it there, although we might face issues where
recreated pages were protected.

One workaround might be to wipe the protection status when the page is being
created (during EditPage::attemptSave()) and ignore restrictions on pages which
don't exist. This would, however stop us implementing nice unwiki features such
as preventing a page from being created, at least based around the protection

tool.

By the way, something similar to this: when a page is moved, the protection
history doesn't move with it. Thus, when someone clicks protect and finds that
it is already protected, s/he will see nothing in the log displayed if the
article was first protected under the former title. It would make sense to
change this, since the protection is of the current page, regardless of the title.

*** This bug has been marked as a duplicate of bug 12343 ***