Last modified: 2013-09-04 11:51:19 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 T32053, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30053 - update.php should fail early if it doesn't have permissions
update.php should fail early if it doesn't have permissions
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-25 16:59 UTC by Mark A. Hershberger
Modified: 2013-09-04 11:51 UTC (History)
1 user (show)

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


Attachments

Description Mark A. Hershberger 2011-07-25 16:59:18 UTC
While upgrading a large db from 1.16.5 to 1.17.0, update.php failed way too late with inadequate permissions.  Now I'm going to have to run update.php again after giving it a different user.

The error for the failure was:


Creating iwlinks table...A database query syntax error has occurred.
The last attempted database query was:
"CREATE TABLE `pf_iwlinks` (
 iwl_from int unsigned NOT NULL default 0,
 iwl_prefix varbinary(20) NOT NULL default '',
 iwl_title varchar(255) binary NOT NULL default ''
 ) ENGINE=InnoDB, DEFAULT CHARSET=binary
"
Comment 1 Sam Reed (reedy) 2011-07-25 18:21:37 UTC
Quick google suggests checking for "current sql user permissions" isn't a simple thing, it's very much try it, and see if it keels over then
Comment 2 Mark A. Hershberger 2011-07-25 23:17:02 UTC
I think mysql would show you the current user's grants.

But in any case, it would just be nice to have these keeling over instances earlier rather than later.  When we create users, for example, we evidently don't (or didn't?) grant them the ability to create tables, so we should know to test for that earlier rather than later.

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


Navigation
Links