Last modified: 2014-09-24 00:06:01 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 T23573, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21573 - chained autopromote fail
chained autopromote fail
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.15.x
Other Linux
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-19 21:50 UTC by jeremy
Modified: 2014-09-24 00:06 UTC (History)
4 users (show)

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


Attachments

Description jeremy 2009-11-19 21:50:20 UTC
i am using:
MediaWiki 1.15.0 
PHP 5.2.11 (apache2handler) 
MySQL 5.0.87 
on a rhel LAMP server.

I am hoping someone has tried this before. my users are authenticated and groups retrieved from ldap, i am using autompromote to map those users to local groups from their ldap groups.

here is my autopromote

<pre>
$wgAutopromote = array(
 "bureaucrat" => array("|",array(APCOND_INGROUPS, "be-hro-dev"), array(APCOND_INGROUPS, "be-pun-dev"), array(APCOND_INGROUPS, "div-rd-1"), array(APCOND_INGROUPS,"quickdesign-writers"), array(APCOND_INGROUPS, "div-rd-2")),
 "reviewer" => array("|",array(APCOND_INGROUPS,"bureaucrat"), array(APCOND_INGROUPS, "sysop")),
 "editor" => array(APCOND_INGROUPS, "sysop")
 );
</pre>

It seems the first autopromote works but the userlist page does not show the user in the group, neither does the userrights page.

in the page source however i do see, 

<pre>
var wgUserGroups = ["div-rd-1", "*", "user", "bureaucrat"];
</pre>

only the userlist and userrights page i only see the div-rd-1.

also looking through the autompromote code the iterations through this array do not take into account any groups that may get promoted during the loop, only what was assigned to the user at the time the check was run.

any thoughts or suggestions?
Comment 1 jeremy 2009-11-20 16:21:32 UTC
actually after a little further investigation it seems to only be related to 2 ldap groups, div-rd-1 & div-rd-2, my other groups work just fine. any thoughts?
Comment 2 Chad H. 2009-11-29 23:38:46 UTC
(In reply to comment #0)
> It seems the first autopromote works but the userlist page does not show the
> user in the group, neither does the userrights page.
> 
> in the page source however i do see, 
>
> <pre>
> var wgUserGroups = ["div-rd-1", "*", "user", "bureaucrat"];
> </pre>
> 
> only the userlist and userrights page i only see the div-rd-1.
> 

The thing about $wgAutopromote is that it makes the groups implicit. That is, they will not show up on Special:UserRights or Special:ListUsers. I would've thought that you'd need to add it to $wgImplicitGroups as well, but apparently not? I've not seen an example of trying to use non-implicit groups (like b-crat in your case) with $wgAutopromote. It's probably an edge case that could use some more poking to make sure it all works as expected.
Comment 3 jeremy 2009-12-07 19:03:46 UTC
so the odd thing here is the autopromote actually works for all of the groups in the first map except for the div-rd-* groups.

anyway i can debug this to get more information about what is happening?
Comment 4 Sumana Harihareswara 2011-07-08 15:48:08 UTC
Jeremy, can you still reproduce this with MediaWiki 1.17.0?

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


Navigation
Links