Last modified: 2012-04-12 13:55:07 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 T30842, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28842 - User rights disappear on update to 1.16.5 on a wiki with Lockdown
User rights disappear on update to 1.16.5 on a wiki with Lockdown
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-05 21:56 UTC by Mark Redekop
Modified: 2012-04-12 13:55 UTC (History)
9 users (show)

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


Attachments

Description Mark Redekop 2011-05-05 21:56:20 UTC
I was running 1.16.4 then i upgraded to 1.16.5 this morning using the patch version.  Now if anybody tries switching from monobook to vector they loose all user rights, things like image upload, protecting a page, deleting a page, none of it will work, it comes up with this message:


You do not have permission to do that, for the following reason:
The action you have requested is limited to users in the group: Administrators.

but if you go to special:listuser the user still has administrator behind it.  Also switch back to the old editor and skin doesn't fix the issue.
Comment 1 Mark Redekop 2011-05-06 00:11:45 UTC
I've reverted the update back to 1.16.4 and it fixed the rights issues
Comment 2 Roan Kattouw 2011-05-06 09:20:22 UTC
.16.5 touched something to do with user rights, so I guess this could be a bug that corrupts the User object cache when the user changes their preferences or something.

Mark, could you check whether this happens with any preference change, as opposed to just with switching to Vector? Could you also check whether your users are just mysteriously losing rights or getting logged out altogether?
Comment 3 Mark Redekop 2011-05-07 06:43:11 UTC
I tried the upgrade to 1.16.5 again tonight, this time i lost my admin rights without touching anything in my preferences (only diff i can think of is that i might not have run the update script right away last time, this time i did) this happened with both the accounts i have one is set to have vector as the default, the other monobook.

Also it doesn't appear as if users are logged out altogether, you can log in, your username appears in the top right corner, you can log out and log in with a diff account and in recent changes your edits are credited to your account.  however the user rights that you have are the same as if you were an anon editor.
Comment 4 Tim Starling 2011-05-09 01:06:18 UTC
Is your wiki public? If it is, what is its URL? Can you try contacting me on IRC about this?
Comment 5 Mark Redekop 2011-05-10 03:38:47 UTC
yes it's a public wiki, you can find it at aiowiki.com 

another issue has come up, one of my users reported that hew was able to protect a page as a ip address (this is logged here http://www.aiowiki.com/wiki/Special:Contributions/66.168.6.124 and in the recent changes but it's not showing up in the protection log for the wiki).  I've emailed him and asked him how he managed to do this but haven't got a response yet.  

When I'm on IRC my name is Reddo
Comment 6 Tim Starling 2011-05-10 06:52:27 UTC
Mark narrowed it down to the Lockdown extension, when Lockdown is disabled, it doesn't happen. Updated summary.
Comment 7 Tim Starling 2011-05-10 07:20:43 UTC
Lockdown sets default user options based on the contents of $wgUser, which is definitely a bad idea and something it shouldn't be doing. It calls $wgUser->getEffectiveGroups(), which hits a recursion guard in User::load() and so sets $wgUser->mEffectiveGroups incorrectly. In 1.16.4, $wgUser->mEffectiveGroups happened to be already initialised when the hook was called, but in 1.16.5 it is not.

A workaround is to disable the SearchableNamespaces hook registration in Lockdown.php. I suggest doing that in all branches unless someone can be found who is interested in fixing the extension properly. I'll CC Daniel Kinzler since his name is in the file header.

Lowering priority since we now know there's no problem with the core that would require a release.
Comment 8 Ryan Schmidt 2011-05-12 01:13:21 UTC
Fixed in r87897, has not been backported to the 1.16 branch as of yet

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


Navigation
Links