Extension talk:UserProtect/Flow

About this board

This extension do not work in mediawiki 1.37 for me at least

2
Summary by Tosfos

Extension only guarantees compatibility for LTS MediaWiki versions.

62.141.26.221 (talkcontribs)

Extension has released extension for this version, but it is not working for me yet.

Tosfos (talkcontribs)

The extension only officially supports LTS versions. It's possible that the future update for 1.39 will work on 1.37.

this extension don't work in mediawiki 1.36

3
Summary by Tosfos

Extension only guarantees compatibility for LTS MediaWiki versions.

Gota de agua (talkcontribs)

i tested this extension in mediawiki 1.36, the next mistakes brand:


MediaWiki internal error.

Original exception: [293d303f747e6e4f13dfc066] /wiki/index.php/Usuario:Pino ArgumentCountError: Too few arguments to function MediaWiki\Permissions\PermissionManager::__construct(), 4 passed in /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/extensions/UserProtect/includes/UserProtectHooks.php on line 59 and exactly 9 expected

Backtrace:

from /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/Permissions/PermissionManager.php(221)

#0 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/extensions/UserProtect/includes/UserProtectHooks.php(59): MediaWiki\Permissions\PermissionManager->__construct(MediaWiki\Config\ServiceOptions, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Revision\RevisionStore, NamespaceInfo)

#1 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): UserProtectHooks::{closure}(MediaWiki\MediaWikiServices)

#2 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)

#3 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWikiServices.php(264): Wikimedia\Services\ServiceContainer->getService(string)

#4 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWikiServices.php(1240): MediaWiki\MediaWikiServices->getService(string)

#5 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/user/User.php(4582): MediaWiki\MediaWikiServices->getPermissionManager()

#6 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/user/User.php(4553): User->getThisAsAuthority()

#7 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWiki.php(220): User->authorizeRead(string, Title, MediaWiki\Permissions\PermissionStatus)

#8 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWiki.php(913): MediaWiki->performRequest()

#9 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWiki.php(546): MediaWiki->main()

#10 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/index.php(53): MediaWiki->run()

#11 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/index.php(46): wfIndexMain()

#12 {main}

Exception caught inside exception handler: [293d303f747e6e4f13dfc066] /wiki/index.php/Usuario:Pino ArgumentCountError: Too few arguments to function MediaWiki\Permissions\PermissionManager::__construct(), 4 passed in /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/extensions/UserProtect/includes/UserProtectHooks.php on line 59 and exactly 9 expected

Backtrace:

from /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/Permissions/PermissionManager.php(221)

#0 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/extensions/UserProtect/includes/UserProtectHooks.php(59): MediaWiki\Permissions\PermissionManager->__construct(MediaWiki\Config\ServiceOptions, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Revision\RevisionStore, NamespaceInfo)

#1 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): UserProtectHooks::{closure}(MediaWiki\MediaWikiServices)

#2 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)

#3 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWikiServices.php(264): Wikimedia\Services\ServiceContainer->getService(string)

#4 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWikiServices.php(1240): MediaWiki\MediaWikiServices->getService(string)

#5 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/user/User.php(4582): MediaWiki\MediaWikiServices->getPermissionManager()

#6 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/user/User.php(3133): User->getThisAsAuthority()

#7 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/skins/Skin.php(308): User->isAllowedAll(string, string, string)

#8 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/OutputPage.php(2509): Skin->getDefaultModules()

#9 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/OutputPage.php(2623): OutputPage->loadSkinModules(SkinVector)

#10 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/exception/MWExceptionRenderer.php(147): OutputPage->output()

#11 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/exception/MWExceptionRenderer.php(66): MWExceptionRenderer::reportHTML(ArgumentCountError)

#12 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(ArgumentCountError, integer)

#13 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(ArgumentCountError)

#14 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/includes/MediaWiki.php(568): MWExceptionHandler::handleException(ArgumentCountError, string)

#15 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/index.php(53): MediaWiki->run()

#16 /data/web/a1/eb/4e/laplumaazul.tk/htdocs/wiki/index.php(46): wfIndexMain()

#17 {main}

X-Savitar (talkcontribs)

Hi, thanks for reporting this and sorry for the delay.

We're tracking this internally and will get back here once it's fixed on 1.36

Thank you!

Tosfos (talkcontribs)

This extension's compatibility policy is "ltsrel". In other words, it will only have branches for LTS versions of MediaWiki. So I'm not sure it will ever work with 1.36.

Summary by X-Savitar

3 months passed but no response. Hence resolving but feel free to reopen if you want to reinitialize the conversation.

בקש (talkcontribs)

I installed this extension on my private wiki and everything looks very nice. But its not doing anything. Meaning Im adding for some user the rights to edit A protected page, and the user still can't edit this page. Can someone know where is my problem?

Thanks

X-Savitar (talkcontribs)

@בקש, thank you very much for reporting.

Did you have any errors in the process?

Also, can you let us know how you tested the rights added/removed for the specified user?

Can you protect pages from being viewed?

6
Summary by Tosfos

Not yet

Tinss (talkcontribs)

Nice extension!

Can you protect select pages from being viewed by an anonymous user?

Also, I thing the introduction is missing some text.

WikiTeq (talkcontribs)

It doesn't handle view right now. It might be added at some point though. Which text are you looking for?

Tinss (talkcontribs)

It was the features section, but I see it has been added. Thanks!

Also, it would be great if it was possible to cascade protections to all subpages of a page or give special access to single user accounts. No hurry though.

I'm actually the developer behind Extension:Semantic ACL. This latter extension gets the job done, but yours appears to be a more durable solution that is more in line with the MediaWiki way of doing things and does not interfere with the cache.

WikiTeq (talkcontribs)

Cascading subpage protection is an interesting idea. I'm not sure though because I like the way the extension currently mirrors the core page protection, which I don't think can do that. But we probably should add the ability to cascade-protect transcluded pages.

I'm not sure what you mean by "give special access to single user accounts". The extension already can add specific rights. Do you mean that you'd like to grant specific users the ability to use "User protect"? Well, you can do that by adding "userprotect" to the rights array like with most other rights. So add something like:

$wgUserProtectRestrictionTypes['userprotect'] = true;

You can use UserProtect to grant UserProtect :). That's a little trick that maybe should be documented.

I didn't make the connection between you and Extension:Semantic ACL. That is also a great extension and we took a long look at it before writing a new one. The main issue was that our client needed the ability to block (remove rights) for certain users on a per-page basis, among other needs.

Regarding the "read" right, one issue is that we would need to disable cache for that setting to take immediate effect. But the bigger problem is security. I'm confident that we can securely block every right except "read". Really there needs to be a major modification to core in order for extensions to block "read". But if enough people ask, maybe. :)

Tinss (talkcontribs)

Great!

By "give special access to single user accounts", I meant for instance giving specific user accounts (rather than to user groups) rights to view or edit a page.

Otherwise , I understand your concern of not being able to provide full read protection. I've managed to do it through inclusions and search, but there are probably many other was someone can gain access to protected content...

WikiTeq (talkcontribs)

So that's actually what the extension does. The regular MediaWiki Protect tab is for user groups and the UserProtect tab is for user accounts.

There are no older topics
Return to "UserProtect/Flow" page.