• 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.

Item3756: TWikiRegistrationAgent produces wrongly formated entries

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWikiUserMapping Urgent Closed   minor 4.1.3, 4.2.0

Edit Form Data

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

Detail

TWikiRegistrationAgent produces wrongly formated entries in TWikiUsers when registering new users.

The format that seems to be the expected and working one is:

<3 spaces>*<space><TWikiName><space>-<space><userid><space>-<space><date>

The format it's being added when using TWiki 4.1.1 is:

<tab>*<space><TWikiName><space>-<space><userid><space>-<space><date>

This results in the page being rendered and displayed correctly, but user authentication fails, resulting in poor user experience and extra work load for the Admins.

-- TWiki:Main/AndersHolm - 13 Mar 2007

I don't know why user authentication would fail; this file has nothing to do with user authentication. It's purely used for mapping user login names to wiki names. Can you be more specific about what happens? Is it the login name -> wiki name mapping that is failing? i just checked the code that parses the TWikiUsers file, and it works with tab same as space.

-- TWiki:Main.CrawfordCurrie - 13 Mar 2007

Correct. The REMOTES_USER uid doesn't get expanded to the TWikiName of the user. We have some protected webs, so the user can see everything but those. The difference in syntax lets the TWikiUsers topic to render nicely, but it seems that the mapping itself then breaks.

After I changed the leading tab to the 3 spaces the mapping worked. To be honest I didn't dig any deeper, but figured I'd log the bug so it can get attention. It happily breaks new user auth for me at the moment.

-- TWiki:Main.AndersHolm - 14 Mar 2007

When you provide feedback please flip the State back to New; this time I happened to notice your change; normally I would ignore an issue sitting in "Waiting for Feedback" state. Thanks.

CC

Will do. Sorry about that. My first bug report and wasn't sure about the status flags.

-- TWiki:Main.AndersHolm - 15 Mar 2007

changed the code back to using three spaces -- SvenDowideit - 22 Mar 2007

If provided with a patch, I can also test this, if you like.

-- TWiki:Main.AndersHolm - 26 Mar 2007

Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

ItemTemplate
Summary TWikiRegistrationAgent produces wrongly formated entries
ReportedBy TWiki:Main.AndersHolm
Codebase 4.1.1, 4.1.2, ~twiki4
SVN Range TWiki-4.1.2, Sat, 03 Mar 2007, build 13043
AppliesTo Engine
Component TWikiUserMapping
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:13206 TWikirev:13207
TargetRelease minor
ReleasedIn 4.1.3, 4.2.0
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r14 - 2008-08-10 - GilmarSantosJr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback