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

The upgrade emails script is now totally broken.

It is supposed to copy the email address from the user topics into the secret password file.

And when there is no email address it should use the admin address.

But only if there is no secret email address already.

Now it overwrites all the perfectly OK stored secret email addresses with the admin address.

It also has a small glitch when it prompts for the admin email address. It prompts once more.

KJL

It prompts once more, a visual confirmation of correct input. It's kind of a "one-time" operation, no way to automatically revert to another admin address once inserted, I thought an extra check wouldn't hurt before proceeding.

  • Extra check would be OK if it asked to confirm. But just repeating the same input line is unusual and my reaction was that it did not accept my input. KJL

Strange, cannot verify behaviour with overwrite of already stored e-mails - test data?

What password manager are you using - one that'll actually read the email from .htpasswd?

-- SP

I am using the normal Apache authentication with a .htpasswd file. Otherwise I would not need to run the upgrade_emails.pl script in the first place.

You need a .htpasswd file with some users that have the email address stores.

And the same user with a topic without an email address.

The tool should leave this user alone and not alter his email address in .htpasswd.

KJL

Can't reproduce this. User e-mails for users with no e-mail listed in their user topics (but having one already in .htpasswd) are left untouched here.

What wording would you like in the script, to clear things up?

-- SP

Changed wording, still can't reproduce - closing this. This is with HtPasswdUser / TemplateLogin.

SVN 1492.

-- SP

I can not make it fail either. I must have made a mistake when I tested. Red Herring. Thanks. Your fix for the prompt text is fine. Thank you for that.

KJL

ItemTemplate
Summary upgrade_emails.pl script totally broken
ReportedBy TWiki:Main.KennethLavrsen
Codebase

SVN Range Sun, 22 Jan 2006 build 8439
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 8492
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2006-01-26 - KennethLavrsen
 
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