Tags:
create new tag
view all tags

Question

The email sent by WebNotify contains incorrect URLS, with part of the URL duplicated.

For example, the URL http://somemachine.com/~anp/~anp/twiki/bin/view/Mywebname/TWikiPageName

has "~anp/" twice rather than once.

All the URLs in the WebNotify email have this duplication.

I've looked at all references to "~anp" in the TwikiPreferences and don't see any problems. I've no problems with the rest of the system - URLs work fine within the TWiki

Any suggestions?

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, TablePlugin
Server OS: Redhat Linux 8.0
Web server: Apache
Perl version: 5.8.0
Client OS: N/A (Various)
Web Browser: N/A (various mail clients)

-- AndyPryke - 03 Mar 2004

Answer

You may need to do some TWikiDebugging in the mailnotify program, near the end where it fixes up the URL paths. As always, following the SupportGuidelines and posting your testenv HTML output and TWiki.cfg would help... I suspect something may be wrong with the setting of $scriptUrlPath, used near the end of mailnotify, but it's more likely to be a config problem than a TWiki bug. testenv specifically checks for one problem with this variable - did you already run testenv?

In your setup, $scriptUrlPath should be something like "/twiki/bin" in TWiki.cfg, and should not be prepended with ~anp.

-- RichardDonkin - 04 Mar 2004

Thanks Richard. You're quite right about the SupportGuidelines, thanks for helping anyway.

My problem appears to be that my defaultUrlHost variable was incorrectly set in TWiki.cfg.

The old file read:

$defaultUrlHost   = "http://hostname.com/~anp"; 
$scriptUrlPath    = "/~anp/twiki/bin";
$pubUrlPath       = "/~anp/twiki/pub";

The version which now works reads

$defaultUrlHost   = "http://hostname.com"; 
$scriptUrlPath    = "/~anp/twiki/bin";
$pubUrlPath       = "/~anp/twiki/pub";

I did test removing the "~anp" from the scriptUrlHost variable, but then found that the URLs generated for edit links (at probably other links) in TWiki pages were incorrect.

-- AndyPryke - 18 Mar 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-03-18 - AndyPryke
 
  • 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.