Tags:
create new tag
, view all tags

Bug: Invalid Action in Register

After filling in TWikiRegistration (pub version, with passwords), I get an error message:

Test case

Go to http://visiblearea.com/devtwiki/bin/view/TWiki/TWikiRegistration and try to add a user.

Environment

TWiki version: DEVELOP 3778
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache/1.3.31
Perl version: 5.6.1
Client OS:  
Web Browser:  

-- ArthurClemens - 09 Mar 2005

Impact and Available Solutions

Follow up

The new registration form requires a hidden field called "action"; if it is not present you get the error:

invalid action () in register at /home/aclemens/visiblearea.com/devtwiki/lib/TWiki/UI/Register.pm line 101
   TWiki::UI::Register::register_cgi('TWiki=HASH(0x80f57ac)') called at /home/aclemens/visiblearea.com/devtwiki/lib/TWiki/UI.pm line 140
   TWiki::UI::run('TWiki::UI::Register', 'register_cgi') called at register line 32

You have an out of date registration form.

The up to date registration form has a hidden field called "action". The code in lib/TWiki/UI/Register.pm has a case statement that dispatches on this.

How do I know? I had a highly customized TWikiRegistration screen on one of my sites. I got bitten by this too!

Go to http://svn.twiki.org/svn/twiki/branches/DEVELOP/data/TWiki/TWikiRegistration.txt and scroll down to the last few lines of the form. There you will see

</tr><tr>
  <td valign="top" align="right"> &nbsp; 
      <input type="hidden" name="topic" value="%TOPIC%" />
      <input type="hidden" name="action" value="register" />
  </td>
  <td> 
     <input type="submit" value=" Submit " /> &nbsp;&nbsp; (Fields marked =<Font color="red">**</font>= are required) 
   </td>
</tr>
</table>
</form>

It is the
      <input type="hidden" name="action" value="register" />
which is the important thing.

-- ArthurClemens - 21 Mar 2005

My plan is to make the register script default to the old behaviour if the parameter is omitted.

-- MartinCleaver - 19 Apr 2005

From DevelopReleaseVersion#4090, Dakar no longer mandates action=register parameter. Instead it defaults to register.txt

This release also defaults to not lowercasing the user name, thus providing continuity for users expecting WikiNames and flexibility for those wishing to override with their preferred name.

Committed revision 4090.

-- MartinCleaver - 24 Apr 2005

Fix record

Discussion

Edit | Attach | Watch | Print version | History: r20 < r19 < r18 < r17 < r16 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r20 - 2006-10-08 - SvenDowideit
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.