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
http://blahblah/TestDocumentB?rev=6
, 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.
Example
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.
CC