Bug 1019050

Summary: RFE: Replace entities with those defined in a content spec in the live renderer
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: Web-UIAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.2CC: cbredesen, lnewson
Target Milestone: ---   
Target Release: 1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-03 22:16:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 864616, 1013882    
Bug Blocks: 965921    

Description Matthew Casperson 2013-10-15 05:18:50 UTC
Now that entities can be defined (https://bugzilla.redhat.com/show_bug.cgi?id=864616) we should allow the live renderer to make use of those entities.

Comment 1 Lee Newson 2013-10-15 23:04:00 UTC
This should probably only be implemented once full entity support is included to make sure it doesn't cause translation issues (see BZ#1013882).

Comment 2 Lee Newson 2013-11-26 01:10:37 UTC
Added in 1.3-SNAPSHOT build 201311261027

The renderer will now display a list of Content Specs that have either a condition or custom entities, instead of the old list that just displayed the different conditions. To see the entities or conditions used in the content spec, there is a new info button beside the dropdown list that will open up a dialog box with the rendering information.

The validator has also been updated to pull all the custom entities from the content specs that the topic is used in and add them to the XML before it is sent for validation.

Note: This is deployed on the development/test server.

Comment 6 Lee Newson 2013-11-28 02:19:12 UTC
Fixed in 1.3-SNAPSHOT build 201311281207

Previously when the XML was being rendered it would attempt to convert the XML into a DOM Document, however if that failed then it would just send the XML as is to the renderer. Now I've updated this to catch any parsing errors (so where invalid custom entities would be detected) and then process the error to display an error message in the rendering panel.

Doing this also has the added benefit of fixing BZ#1009200 since invalid XML is no longer sent to be rendered.

Note: This version is currently live on the test/development server.

Comment 7 Matthew Casperson 2013-11-28 02:28:14 UTC
Tested topics with a mix of custom and standard docbook entities, and warnings for topics with missing entities were displayed as expected.