Last modified: 2010-05-15 15:33:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1789 - wgWhiteListRead is ineffective when set to empty array
wgWhiteListRead is ineffective when set to empty array
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-03-31 14:02 UTC by Andre Costa
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Description Andre Costa 2005-03-31 14:02:20 UTC
If I set wgWhiteListRead to an empty array, I would expect anonymous users to be
denied access to all pages. However, it looks like it has no effect, and
anonymous users can actually browse all pages. The only way I found this to work
was to put at least one (fake) page on the array. IMHO an empty array should
equals to "deny access to all pages" for anonymous users.
Comment 1 Brion Vibber 2005-06-02 01:35:09 UTC
You need to define at least an entry front page and the login page, otherwise you've got a 
pretty useless site.
Comment 2 Dashiva 2005-06-02 02:07:24 UTC
Well, function userCanRead in Title.php includes a specific check if the requested page is the login page, and if anon users can 
register. If yes, it ignores $wgWhitelistRead and allows access to login page. :)

This problem, bug or not, should be gone in 1.5. The check against $wgWhitelistRead in User.php is removed in favor of the new 
user/group permissions. Until then, you can either use a dummy page, or edit said line in User.php to use === false rather than empty(). 
But as brion says, you probably want an entry page so people can access the login page without having it bookmarked.

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