Last modified: 2013-01-07 22:22: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 T45698, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43698 - SMW_refreshData.php uses the restricted rights mysql user $wgDBuser instead of $wgDBadminuser
SMW_refreshData.php uses the restricted rights mysql user $wgDBuser instead o...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-07 12:44 UTC by Gregor Hagedorn
Modified: 2013-01-07 22:22 UTC (History)
5 users (show)

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


Attachments

Description Gregor Hagedorn 2013-01-07 12:44:15 UTC
Mediawiki provides two users: the standard
http://www.mediawiki.org/wiki/Manual:$wgDBuser
with restricted rights and
http://www.mediawiki.org/wiki/Manual:$wgDBadminuser
to be used with extended rights, e.g. when running upgrade.php.

SMW_refreshData.php however uses the restricted rights mysql user $wgDBuser instead of $wgDBadminuser and fails to upgrade the database. This requires for each update to change the rights of $wgDBuser for each database with SMW and reset afterwards.

Please align the operation of SWM with standard Mediawiki in this respect to reduce this work.
Comment 1 Alex Monk 2013-01-07 22:22:44 UTC
Looks like this variable is currently specific to the Maintenance code. Maybe core should be changed to use it in the database class.

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


Navigation
Links