There is a kind of URL and link path that will result in the user erroneously creating WebTopicViewTemplate rather than their desired page. What happens is this:
- The user types in or follows a direct URL link to a nonexistent topic (e.g.
http://example.com/twiki/bin/view/Main/PAGE001
)
- The nonexistent topic name is not a wikiword
- The nonexistent topic name has numbers in it
- The user receives the page reading "Note: This topic does not exist" and clicks on the
'Create PAGE001'
link. Note that this link points to .../twiki/bin/view/Main/WebTopicViewTemplate?create=on&newtopic=PAGE001
rather than .../twiki/bin/view/Main/PAGE001?create=on&newtopic=PAGE001
- On the following page, titled "Create New Topic in Main Web", the user clicks on the
Create
button (action button) rather than the Create this topic
form submission button. This results in the page WebTopicViewTemplate being created rather than PAGE001.
--
TWiki:Main/DylanPartridge
- 24 Apr 2007
This appears to be fixed (or worked around? The requirements for the link make me think something isn't setting %TOPIC% right?) by changing TWiki.WebTopicViewTemplate so that the create link near the bottom reads
%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?create=on&newtopic=%BASETOPIC%
(changing %TOPIC% to %BASETOPIC% after %BASEWEB%)
--
TWiki:Main.DylanPartridge
- 24 Apr 2007
It very much depends on the context you are placing the link in (whether it's in a topic, a form, and included topic, a topic included from an included topic). Could you provide a testcase, please? You can create topics in the
LitterTray web on this site to demonstrate the problem. Thx
CC
Here's one:
http://develop.twiki.org/~twiki4/cgi-bin/view/LitterTray/PAGE001
Follow that link and perform the steps above to reproduce the problem (I verified this). Thanks!
--
TWiki:Main.DylanPartridge
- 26 Apr 2007
This bug is confirmed and easy to reproduce.
And it is present both in Patch04x01 branch and MAIN branch
--
TWiki:Main.KennethLavrsen
- 27 Apr 2007
This is crap, and may well be indicative of a deeper problem, so raising to urgent.
CC
It's not a deeper problem, it's a problem in the
WebTopicViewTemplate. The template needs to be fixed. The workaround is to select the "Create this topic" button instead of the "Create" button in the bottom or top bar (naff, I know).
CC
Create URL in TWiki.WebTopicViewTemplate updated to use BASETOPIC as suggested by Dylan - thanks.
--
TWiki:Main.SteffenPoulsen
- 20 Aug 2007
Cleaned "WaitingFor" field.
--
TWiki:Main.GilmarSantosJr
- 10 Aug 2008