Page MenuHomePhabricator

impossible to login when $wgGroupPermissions['*']['read']= false
Closed, DeclinedPublic

Description

Author: jernst+wikimedia.org

Description:
I might misunderstand something here, but it appears that if I set

$wgGroupPermissions['*']['read'] = false

(intending to create an access-protected wiki), anonymous users cannot even get
to the Special:Userlogin page, which makes it impossible even for registered
users to access the wiki.

In this case, the Main_Page seems to get into an infinite 10-second refresh loop.

If this is indeed the way it is, I'm asking to be able to access to
Special:Userlogin even for anonymous users if $wgGroupPermissions['*']['read'] =
false

If I misunderstand it, this bug is: "please fix the messages on screen in a way
that I understand how to log on as a registered user" ;-)


Version: 1.5.x
Severity: normal

Details

Reference
bz3637

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:50 PM
bzimport set Reference to bz3637.
bzimport added a subscriber: Unknown Object (MLST).

You need to set up $wgWhitelistRead to include the main page and login.

jernst+wikimedia.org wrote:

I modify my bug report then to the following:

  1. Add a simple if-then-else in the DefaultSettings.php that sets

$wgWhitelistRead to an absolutely minimal list (e.g. Special:Userlogin only --
not sure what would be most appropriate, I leave that to people more
knowledgable than me, but I think it should exclude the Main_Page) so that the
hapless new user has a way out of the endless loop and can log on.

  1. please insert brief instructions and default values into LocalSettings.php --

and fix the formatting in includes/DefaultSettings.php so it is clear that the
sections

User rights section

and

/**

  • Permission keys given to users in each group.

...

are part of the same subject.

robchur wrote:

Then this becomes an issue of documentation, not of code.