Page MenuHomePhabricator

Database error when trying to protect a page for creation
Closed, ResolvedPublic

Description

When a sysop tried to protect [[de:Kadhi (Gericht)]] for creation, a database error occured:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: INSERT INTO page_restrictions (pr_page,pr_type,pr_level,pr_cascade,pr_expiry) VALUES ('0','aft','aft-noone','0','infinity') Function: DatabaseBase::insert Error: 1062 Duplicate entry '0-aft' for key 'PRIMARY' (10.64.32.28)

For me this seems not to be an issue with upgrading, but with AFT. If AFT protections work on page ids it doesn't make sense to protect missing articles anyway.


Version: unspecified
Severity: normal

Details

Reference
bz49174

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:50 AM
bzimport set Reference to bz49174.

Related URL: https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7)

Thanks for the report.
I just pushed a patch to gerrit (that will ignore the AFT protection for non-existing pages) & we'll aim to deploy it this week.

https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7) | change APPROVED and MERGED [by jenkins-bot]

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