We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Bug: Template topic fails across webs

The templatetopic cgi parameter does not support Web.TopicName addressing. This was tried as per SelectableNewTopicTemplates suggestion to place template in a protected web. A workaround (working) is to replace Web.TopicName with ../Web/TopicName.

Test case

Try this:

http://twiki.org/cgi-bin/edit/Sandbox/?topic=TemplateTopicFailsAcrossWebs&TopicClassification=BugReport&onlywikiname=on&templatetopic=Codev.NewBugTemplate

Workaround:

http://twiki.org/cgi-bin/edit/Sandbox/?topic=TemplateTopicFailsAcrossWebs&TopicClassification=BugReport&onlywikiname=on&templatetopic=../Codev/NewBugTemplate

(not a great example unless you consider that the failure to find the form is a good indication it is using the template smile

Environment

TWiki version: 01Dec2001
TWiki plugins: None
Server OS: Linux
Web server: Apache
Perl version: 5.6.0
Client OS: Various
Web Browser: Various

-- DarrylGreen - 19 Jul 2002

Follow up

I just re-checked it is definitely broken on twiki.org. Note that failure = no oops and success = oopsnoformdef because if the template topic (Codev.NewBugTemplate) is found it refers to the WebForm template in the web specified in the URL (ie Sandbox). There is no such form and this is what causes the oops. If the template isn't found there is no oops for template topic not found (is this a bug or a feature?) and the default edit template is used (successfully, but this is incorrect behaviour afaics). There is a related issue I saw (can't find it right now) about failures trying to use cross-web addressing for fom definitions. By the way, the oopsnoformdef bit me another way - see AccidentalMetaDeclInTopicTextIsNasty.

Oops, yes, you're right -- deleted my comment to keep things more clear. rhk

-- DarrylGreen - 21 Jul 2002

I've been using the workaround that DarrylGreen mentioned above for a few weeks now with little trouble.

-- DavidSachitano - 22 Jul 2002

Fix record

Should be fixed. Please check and report any problems here.

In TWikiAlphaRelease and TWiki.org.

-- PeterThoeny - 30 Jul 2002

Topic revision: r8 - 30 Jul 2002 - 08:31:58 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback