You are here: Foswiki>Tasks Web>Item10575 (30 May 2014, GeorgeClark)Edit Attach

Item10575: History view is broken when using HTML comment tags on first lines of a Wiki topic

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiUIRDiff
Branches:
Reported By: NathanSanders
Waiting For:
Last Change By: GeorgeClark
First of all it was not very easy to find out in which situation this problem exactly appears. But I was able to reproduce it when creating a topic in the following way:
  • Create a new Wiki topic and make sure you have selected a topic parent
  • Switch to the FosWiki markup editor. Add the following text to the topic:
<!--
This is the first comment rule
-->

This is a normal rule!

-- Main.AdminUser - 30 Mar 2011
  • Make sure the HTML comment tags are on the first lines of the topic.
  • Save the topic
  • Edit the topic the same topic and add the following text between the comments and “This is a normal…”:
%TOC%

---++!! Normal Rule
Another line of text.
  • Check the “force new revision” check-box and save the topic.
  • Re-edit the topic and change the following line from
--Main.AdminUser- 30 Mar 2011
to
--Main.OtherUser 30 Mar 2011
  • Check the “force new revision” check-box and save the topic.
  • Re-edit the topic.
  • Add the following between %TOC%% and the header
    --++!! Normal Rule
    :
---
dasdsasdasda
---
  • Check the “force new revision” checkbox and save the topic.
  • Click on history. Only Revision 4, 2 and 1 are shown. Revision 3 is hidden. When viewing the HTML source of the history page, you will see that the HTML that is generated to display revision 3 is between HTML tags.

Although same problems also appear when creating a topic with other combinations of the Wiki markup rules, for now I only had the broken history view when using the HTML comment tags on the first lines of the a topic.

I also attached a screenplay video of this sample.

-- NathanSanders - 30 Mar 2011

 

ItemTemplate edit

Summary History view is broken when using HTML comment tags on first lines of a Wiki topic
ReportedBy NathanSanders
Codebase 1.1.2, 1.0.9
SVN Range
AppliesTo Engine
Component FoswikiUIRDiff
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
ScreenplayBrokenHistory.oggogg ScreenplayBrokenHistory.ogg manage 3 MB 30 Mar 2011 - 10:54 NathanSanders Screenplay Bug Broken History
Topic revision: r3 - 30 May 2014, 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