• 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.
Topic URL parameter overwrites revision to which REVINFO variable refers

REVINFO variable can be used to obtain revision info of some certain topic. For example:

%REVINFO{topic="TestDocumentA" rev=6 format="$rev" }%
returns the revision number of the topic TestDocumentA.

You may also have a topic, which contains revision info about another topic.For example, the TestDocumentB may have following content:

%REVINFO{topic="TestDocumentA" rev=6 format="$rev" }%

This works fine if you have the latest revision of TestDocumentB open. However, if you open the TestDocumentB topic through url

, where rev defines the revision, the revision info for the another document is printed wrongly. The URL's rev parameter seems to overwrite the REVINFO rev parameter.


Content of TestDocumentA (rev5):
This is test.

Content of TestDocumentB (rev6):

%REVINFO{format="TestDocumentB revision: $rev" }%
%REVINFO{topic="TestDocumentA" rev=5 format="TestDocumentA revision: $rev" }%

And now if the TestDocumentB is open normally the output is:
TestDocumentB revision: 6
TestDocumentA revision: 5

But if the TestDocumentB is open from url http://blahblah/TestDocumentB?rev=6 specifying the revision of the TestDocumentB to be 6 the output is:
TestDocumentB revision: 6
TestDocumentA revision: 6

I think this is bug since revision of the TestDocumentA should have been still 5.

-- TWiki:Main/SamiMertaranta - 14 Feb 2007

Thanks you for the thorough bug description; it really helps!

The problem was due to the url parameter overriding the tag parameter, as you surmised.


Summary Topic URL parameter overwrites revision to which REVINFO variable refers
ReportedBy TWiki:Main.SamiMertaranta
Codebase 4.0.0
SVN Range

AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins TWikirev:14123
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2008-01-22 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback