You are here: Foswiki>Tasks Web>Item4318 (19 Feb 2015, GeorgeClark)Edit Attach

Item4318: Invoking the edit script with "onlynewtopic" set to "on" allows an existing topic to be overwritten if "topic" is lower case.

Priority: Normal
Current State: Needs Developer
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: PlatformWindows, FoswikiUIEdit
Reported By: TWiki:Main.KenFowkes
Waiting For:
Last Change By: GeorgeClark
Using the following to create new "Manual Page" topics from a topic template ...

if the topic is entered in lower case (e.g. 'echo') and the topic already exists, the existing content (e.g. for 'Echo') will quietly be replaced. It appears that the check for onlynewtopic happens before the topic name is converted to upper case.

We're using TWiki to document command-line programs which are typically lower case, so I expect people will forget to capitalize the first letter.

-- TWiki:Main/KenFowkes - 28 Jun 2007

I should have reformatted the form html above to make it viewable here. Sorry! First time. Here's what it would look like:
<form name="new" action="/bin/edit/Tasks/">    <input type="text" name="topic" value="CmdName" size="26" />    <input type="submit" class="twikiSubmit" value="Create New Manual Page" />    <input type="hidden" name="templatetopic" value="ManualPageTemplate" />    <input type="hidden" name="topicparent" value="Item4318" />    <input type="hidden" name="onlywikiname" value="off" />    <input type="hidden" name="onlynewtopic" value="on" /></form>

-- TWiki:Main.KenFowkes - 28 Jun 2007

I'm betting that you are on a windows server, which doesn't distinguish between case in filenames.... can you confirm/deny this?


Good bet! Yes, we're on a windows server.

-- TWiki:Main.KenFowkes - 21 Sep 2007

This, like the other case sensitivity changes that we should make will have to wait for a developer to have time. Sorry.

 -- SvenDowideit - 23 Nov 2007

ItemTemplate edit

Summary Invoking the edit script with "onlynewtopic" set to "on" allows an existing topic to be overwritten if "topic" is lower case.
ReportedBy TWiki:Main.KenFowkes
SVN Range TWiki-4.1.2, Thu, 28 Jun 2007, build 14298
AppliesTo Engine
Component PlatformWindows, FoswikiUIEdit
Priority Normal
CurrentState Needs Developer
TargetRelease n/a
ReleasedIn n/a
Topic revision: r7 - 19 Feb 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy