Tags:
create new tag
view all tags

Bug: Register fails when no SMTP host is set

When in TWikiPreferences no SMTP host is set, registering appears to be broken.

After submitting the register form, the page hangs and gets a browser timeout. Re-submitting leads to a "user exists" oops error page, but the user name has a question mark, indicating that the user topic is not created. However, the password entry is created in .htpasswd. Reloading the oops page now shows the user topic as a normal link, and the user page is added to TWikiUsers.

So everything does work, but appears in a very broken way, without notifying the user.

When a working SMTP host is set in TWiki.TWikiPreferences, all works fine.

But this should not be a requisite; correct behavior would be that the user gets to see a Send Mail Error.

Test case

Environment

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache/1.3.27
Perl version: 5.6.1
Client OS: Mac OS X 10.3
Web Browser: Safari 1.2.1

-- ArthurClemens - 09 May 2004

Follow up

Agreed. I ran into the same problem once when my mail server was off line. Registrations during that period received a browser error (due to a method being called on an undefined object representing the mail host).

Sending a mail is not really crucial. My first preference would be to omit it. If one insists on sending a mail upon registration, a failure in finding a mail host should be caught through error checking and a corresponding error message should be generated.

-- ThomasWeigert - 10 May 2004

Perhaps TWiki can be equipped to "do tasks later". Then we could warn the user that the mail could not be sent but that they would receive it as soon as possible. Also note that there were proposals that the user should be made to confirm their email address by sending a key through the mail to unlock the account. We even had a patch for that, IIRC, but it was lost in the pre-PatchProposal days.

-- MartinCleaver - 12 May 2004

Fix record

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-05-12 - MartinCleaver
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.