Item11180: REGISTRATIONGROUPS does not work in FW1.1.3

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine FoswikiUIRegister, TopicUserMappingContrib  
Foswiki 1.1.3: when REGISTRATIONGROUPTYPE (automatic) with REGISTRATIONGROUPS (e.g. MyOwnGroup) are activated (in SitePreferences), a new user gets email "AddToGroups: MyOwnGroup" but actually he/she is not added to the group . The group has as a member RegistrationAgent and the settings are:

-- ValentinKozlov - 12 Oct 2011

Cannot manage to make it work, and the documentation is bogus (not proper English at least, and confusing):
  • If REGISTRATIONGROUPS below can be set to a comma separated list of groups, to be shown on the registration topic. If it is unset, then group change permissions will be used to create the list of groups a user can be added to (for guest driven registration the RegistrationAgent's permissions are used, for logged in user registration of someone else, that user's permissions are used).

-- OlivierRaginel - 12 Oct 2011

Tracing this a bit, the code in Register.pm does seem to work correctly. $users->addUserToGroup is called, but the topic mapper doesn't add the user.

I'll take this and also clean up the documentation a bit.

-- GeorgeClark - 23 Oct 2011

Here are the issues:
  • TopicUserMapping uses WikiGuest, not RegistrationAgent to try to change the groups.
  • Groups ALLOW settings are hidden in topic settings, so adding an ALLOW to the topic text is ignored. Must edit the settings.
  • TopicUserMapping doesn't report any of this - silently returns if request fails.

-- GeorgeClark - 23 Oct 2011

One-line bug in UI::Register.

-- GeorgeClark - 23 Oct 2011

Fix committed along with updated documentation. Opened Item11196 to ask for improved error handling in the addUserToGroup processing.

-- GeorgeClark - 24 Oct 2011
 

ItemTemplate edit

Summary REGISTRATIONGROUPS does not work in FW1.1.3
ReportedBy ValentinKozlov
Codebase 1.1.3, trunk
SVN Range
AppliesTo Engine
Component FoswikiUIRegister, TopicUserMappingContrib
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:12848 Foswikirev:12849
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r8 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License