Last modified: 2010-05-15 15:33:28 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 T3789, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1789 - wgWhiteListRead is ineffective when set to empty array
wgWhiteListRead is ineffective when set to empty array
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.4.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links