NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item10817: Impossible to register new user when missing {ScriptUrlPath}{view} setting and apache configured w/ShortURLs

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Extension TopicUserMappingContrib  
If you use an ApacheConfigGenerator config, which has ShortURLs configured, but you forget to set {ScriptUrlPath}{View} - then the AJAX calls to Foswiki's UserRegistration look like mysite.org/bin/view/System/UserRegistration, instead of mysite.org/System/UserRegistration. This results in a redirect, and it seems the UserRegistration topic's AJAX calls to check on valid wikiname etc. isn't smart enough to handle it.

So you end up with a wiki that is impossible to register a new user, and now error/feedback whatsoever to indicate why.

The fix is of course to set {ScriptUrlPath}{view} to match your apache config. But is there a way that we can improve the javascript so that it doesn't fail silently?

This will be frustrating for any user trying to pick up Foswiki for the first time and has neglected to set their paths properly.

In fact it's frustrated me on many occasions (I just only found out why it wasn't letting me register).

-- PaulHarvey - 01 Jun 2011

As a result of Item10817

-- PaulHarvey - 18 Jun 2011

Actually result of Item10203

-- GeorgeClark - 01 Oct 2011

Problem is that the WikiName check (and login name too) are done using a POST. If the url is mis-configured, the POST redirects to a GET which confuses things.

This seems to be just getting a section of the topic, and works if the POST is changed to GET. Committing but needs validation by ArthurClemens.

-- GeorgeClark - 01 Oct 2011

This is fine.

-- ArthurClemens - 29 Oct 2011

 

ItemTemplate edit

Summary Impossible to register new user when missing {ScriptUrlPath}{view} setting and apache configured w/!ShortURLs
ReportedBy PaulHarvey
Codebase trunk
SVN Range
AppliesTo Extension
Component TopicUserMappingContrib
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:12672
TargetRelease minor
ReleasedIn n/a
Topic revision: r6 - 29 Oct 2011, ArthurClemens
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads