New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item11180 (17 Dec 2011, GeorgeClark)Edit Attach

Item11180: REGISTRATIONGROUPS does not work in FW1.1.3

Priority: Urgent
Current State: Closed
Released In: 1.1.4
Target Release: patch
Applies To: Engine
Component: FoswikiUIRegister, TopicUserMappingContrib
Reported By: ValentinKozlov
Waiting For:
Last Change By: GeorgeClark
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 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
Checkins distro:55ac69e127c1 distro:0d7185d72df6
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r8 - 17 Dec 2011, GeorgeClark - This page was cached on 18 Sep 2018 - 18:51.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy