Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150143 - www-apps/mediawiki - Add "access-restriction" USE-flag
Summary: www-apps/mediawiki - Add "access-restriction" USE-flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Philippe Trottier (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-05 00:16 UTC by Sven Schwyn (svoop)
Modified: 2006-12-12 11:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2006-10-05 00:16:12 UTC
How about adding a new local flag "access-restriction" which applies the page/category access restriction patch to MediaWiki?

http://meta.wikimedia.org/wiki/Page_access_restriction_with_MediaWiki

The patch adds a new usergroup "viewrestrict" and a new tab that allows to restrict a page or category. Restricted pages or categories can only be viewed/edited by members of the usergroup "viewrestrict".

This patch is very useful if you are using MediaWiki i.e. as an intranet CMS and would like to exclude some pages/categories from public viewing.
Comment 1 Sven Schwyn (svoop) 2006-10-05 00:23:08 UTC
I've just seen that the patch will not be available for the 1.7.x branch. Instead, the developer is working on an extension. From his blog:

> The patch doesn't work for 1.7.1. As you see many modifications are 
> rejected when patching, due to MW changes.
> I think I will not update this patch anymore. I am thinking about an
> extension, what is more stable when MW updates.

> I cannot give any date for the first release, just subscribe to the 
> mailing list to keep in touch :) 
> (restrict-mediawiki-list-subscribe@conseil-recherche-innovation.net)
Comment 2 Philippe Trottier (RETIRED) gentoo-dev 2006-10-05 00:47:22 UTC
The better workaround is to make separate mediawiki databases for Private and Public use, that's how we do it here.

Mediawiki is not the right tool to have a full user right and group right system, there is many other wikis that can do that job better and are designed from scratch as such.

I could be selfish and just say, won't happend or say my vote will be against it, but I'll investigate and reply a bit later, I can see this having real use in some environment.
Comment 3 Christian Parpart (RETIRED) gentoo-dev 2006-10-06 23:18:02 UTC
I'd like to embrace the idea to include only patches that are close to upstream, e.g. official modules written by mediawiki that perform that certain task to be enabled via use-flags (as said). So far, as the given patch doesn't even work, I'd like to encourage you to use apache's <Location> and authentification feature to implement your needs.

Despite this way, I'd as well recomment the way tchiwam proposed, too - as it even holds both parts distinct and though a little cleaner :)
Comment 4 Philippe Trottier (RETIRED) gentoo-dev 2006-10-07 03:15:29 UTC
Look atn the section Access of
http://www.mediawiki.org/wiki/Manual:Configuration_settings

I might have a good suggestion, we could setup the default settings so that on the admin user (bureaucrat) could create a new account by default instead of having anyone and everyone as a default. We could also restrict the anonymous viewing to the login and Main page.

We could make this:
1) The default setting for account creation and anon view rigths
2) Only the the account creation rights stricter by default.
3) The setting with restrict use-flag
4) Show this link in the postinstall

My favorite choices would be in this order 2, 4, 3, 1

Comment 5 Philippe Trottier (RETIRED) gentoo-dev 2006-12-11 04:18:58 UTC
OK I poked around a lot and it seems the safest way to do this and keep close to the instructions would be to added these line at config time. I've done that, it's a hack but I'd like people to consider testing it.


Everyone try:
USE=restrict emerge =www-apps/mediawiki-1.8.2

This will let only the sysop to create new accounts, read pages etc etc... you can then open up the wiki little by little in a safe and controlled manner.

http://meta.wikimedia.org/wiki/Preventing_Access

Comment 6 Philippe Trottier (RETIRED) gentoo-dev 2006-12-12 11:39:01 UTC
I will leave this feature in until I will stabilize, if there is no comments on it before that I will take it off.