Bug 825005
| Summary: | Some global entities still break topics | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Stephen Gordon <sgordon> |
| Component: | Web-UI | Assignee: | Matthew Casperson <mcaspers> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.x | CC: | cbredesen, lnewson, sgordon |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 739466 | Environment: | |
| Last Closed: | 2013-07-01 23:32:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 739466 | ||
| Bug Blocks: | |||
|
Description
Stephen Gordon
2012-05-24 19:36:29 UTC
Will look into it since I changed the entity handling recently due to another bug that wasn't logged where the "& will fail";" was picked up as an entity in: <programlisting><![CDATA[ private final String "This is an example that contains an ampersand & will fail"; ]]</programlisting> As for the better error messages I'll have to take another look as the last time I looked the library we used didn't report any errors. So that means I'll have to find another that fits our requirements. Also what version where you using? I'm just asking because I did originally miss values that used a # and fixed it in 0.24.2. In saying that though there is another underlying issue even if you are using 0.24.2. On the note of the better error message, I found a way with our current library to return error messages, so the next version will contain something like: ERROR: Topic doesn't have well-formed xml. The content of elements must consist of well-formed character data or markup. or for missing tags: ERROR: Topic doesn't have well-formed xml. The element type "para" must be terminated by the matching end-tag "</para>". While the libraries do return the line numbers they are sometimes very inaccurate depending on the issue, so for now I'll leave that out. Will have to talk to Matt on Monday about this since Xerces doesn't permit HTML entities when parsing. So I need to check if we should throw errors about it or just convert the HTML entities to XML entities. Since xmllint and other tools we use allow it I would say that the second option is the better. Talked to Matt about using HTML entities in XML and he said that we should throw an error and encourage the correct XML entities be used. Marking is as ON_QA since we are counting HTML Decimal Notation as invalid. You should use the string based version as it is more readable and that is the only format that works at this point in time with xerces. |