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

Item3945: Direct URL link to nonexistent non-wikiword link with numbers results in erroneous create link

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   patch  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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:

  1. 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
  2. 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
  3. 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

ItemTemplate
Summary Direct URL link to nonexistent non-wikiword link with numbers results in erroneous create link
ReportedBy TWiki:Main.DylanPartridge
Codebase 4.1.2
SVN Range TWiki-4.1.2, Sun, 15 Apr 2007, build 13419
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:14563
TargetRelease patch
ReleasedIn

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r11 - 2008-08-10 - GilmarSantosJr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback