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

Item3908: Possible to set a topic parent to itself

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Low New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


This is mainly a UI errror. It can be prevented by omitting the current topic from TOPICLIST, for instance with an omittopic parameter.

-- TWiki:Main/ArthurClemens - 15 Apr 2007

we should protect against this in the save code (or topic meta) too really, as this is a 'data integrity' issue.

-- TWiki:Main.SvenDowideit - 16 Apr 2007

This is the simplest possible example of a cycle in parent relationships. Anything that uses parent relationships needs to be aware of the possibility of cycles; I don't think it's TWiki's job to ensure that there are none in the saved data, even if it could. I'm going to reject this. If you can justify why I shouldn't, then please re-open it.

-- TWiki:Main.CrawfordCurrie - 26 Apr 2007

You can at least prevent the current topic from being selected as parent.

-- TWiki:Main.ArthurClemens - 26 Apr 2007

I had a problem with such a dependency. I know it was my fault but I think TWiki should not allow to do what I have done. I have removed the topic "WebHome" of a web because the only child (let's call that topic "Child") of that topic should be moved to "WebHome" in order to keep the history. The parent of Child was WebHome so after the move of Child to WebHome was it's own parent. I could not change the dependency because the topic could not be shown anymore. I had to change the file directly on the server. At first, I did not even know why the topic was hanging. I think TWiki should not allow that a topic is its own parent. There should be a check and a error message.

-- TWiki:Main.KirstinWeber - 30 Jul 2008

Summary Possible to set a topic parent to itself
ReportedBy TWiki:Main.ArthurClemens

SVN Range TWiki-4.1.2, Sun, 15 Apr 2007, build 13419
AppliesTo Engine

Priority Low
CurrentState New


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2008-07-30 - KirstinWeber
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback