Last modified: 2013-06-06 10:09:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51174, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49174 - Database error when trying to protect a page for creation
Database error when trying to protect a page for creation
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedbackv5 (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Matthias Mullie
:
: 49204 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-05 09:44 UTC by Michael M.
Modified: 2013-06-06 10:09 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2013-06-05 09:44:57 UTC
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.
Comment 1 Andre Klapper 2013-06-05 09:58:20 UTC
Michael, thanks for copying this from https://de.wikipedia.org/w/index.php?title=Wikipedia:Fragen_zur_Wikipedia&oldid=119233377#Schutz_vor_Neuanlage - I was just about to do the same!
Comment 2 Gerrit Notification Bot 2013-06-05 10:02:50 UTC
Related URL: https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7)
Comment 3 Matthias Mullie 2013-06-05 10:04:08 UTC
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.
Comment 4 Gerrit Notification Bot 2013-06-05 18:37:16 UTC
https://gerrit.wikimedia.org/r/67065 (Gerrit Change I77320d6354d688c60f6fb5d2ebe8a42d4b46a3a7) | change APPROVED and MERGED [by jenkins-bot]
Comment 5 Alex Monk 2013-06-05 19:04:44 UTC
*** Bug 49204 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links