• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6894: Filter out dots when creating WikiWord name from login name

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TWikiUserMappingContrib Normal Closed   patch 5.1.2

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

TWiki::Users::TWikiUserMapping::getWikiName() constructs the WikiName from the cUID if the user is unknown. It relies on $TWiki::cfg{NameFilter} to filter out illegal characters. That configure setting does not filter out '.' dots. The dot is needed for other parts in TWiki, so it can't be added to the setting.

Fix: Filter out the dot explicitly in TWiki::Users::TWikiUserMapping::getWikiName(), as is already done in TWiki::Users::initialiseUser().

I discovered this issue while writing a custom SSO login manager where the login name is an e-mail address that contains periods.

-- TWiki:Main/PeterThoeny - 2012-06-28

This is now fixed in SVN trunk and TWiki-5.1 branch.

-- TWiki:Main/PeterThoeny - 2012-06-28

ItemTemplate
Summary Filter out dots when creating WikiWord name from login name
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 5.1.1
SVN Range TWiki-5.1.1-trunk, Wed, 20 Jun 2012, build 23007
AppliesTo Extension
Component TWikiUserMappingContrib
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:23024 TWikirev:23025 TWikirev:23026 TWikirev:23027
TargetRelease patch
ReleasedIn 5.1.2
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2012-10-07 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback