Bug 1014452 - Regression: Inline tags in <abstract>s are escaped and rendered as text
Summary: Regression: Inline tags in <abstract>s are escaped and rendered as text
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CCMS-Core
Version: 1.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 1.2
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1012194 1019013
TreeView+ depends on / blocked
 
Reported: 2013-10-02 05:22 UTC by Ruediger Landmann
Modified: 2013-10-17 23:45 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-10-17 23:45:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Ruediger Landmann 2013-10-02 05:22:36 UTC
Description of problem:
Inline tags that are children of <abstract> get processed as plain text when built into the Book_Info.xml file

Version-Release number of selected component (if applicable):
1.1

How reproducible:
100%

Steps to Reproduce:
1. Specify an inline tag in the "Abstract:" parameter of a topic map. For example:

Abstract: The <citetitle>Foo Guide</title> describes how you...

Actual results:
This gets built into the Book_Info.xml file as:

<abstract><para>
The &lt;citetitle&gt;Foo Guide&lt;/citetitle&gt; describes how you
<para></abstract>

and rendered in HTML as:

The <citetitle>Foo Guide</title> describes how you...

Expected results:
Inline tags are not escaped and render properly.

Additional info:

Comment 1 Lee Newson 2013-10-03 01:20:26 UTC
This used to work and there are a few people using it already so I'm marking this as a regression.

Comment 2 Lee Newson 2013-10-09 04:44:23 UTC
Fixed in 1.2-SNAPSHOT, Build 201310091335

This was caused by the work we did in 1.0 to escape values so that they can be used in XML, as previously using characters such as "&" would have cause a validation error. I've updated abstract so that it will ignore xml elements and only escape < or > when they are on their own.

Comment 4 Matthew Casperson 2013-10-15 00:09:35 UTC
Tested with invalid XML. Publican throws and error about mismatched tags. Ideally we should have some kind of validation in the CCMS for this, but I think a Publican validation error is sufficient for now.

Tested with 

Abstract = This <citetitle>Foo Guide</citetitle> represents the <emphasis>workflows</emphasis> and methods which generate the best results for <application>CCMS-generated</application> documentation, and should be used as the first point of guidance for using PressGang CCMS

Abstract was displayed correctly.


Note You need to log in before you can comment on or make changes to this bug.