Bug 985154 - csprocessor fails to pickup invalid links due to conditions
Summary: csprocessor fails to pickup invalid links due to conditions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-17 00:25 UTC by Lee Newson
Modified: 2013-07-23 01:33 UTC (History)
0 users

Fixed In Version: 0.33.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-17 03:53:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Lee Newson 2013-07-17 00:25:29 UTC
The csprocessor currently will not pick up if a xref link is invalid if the target is inside of a condition that isn't included in a book.

eg

Topic 1:

<xref linkend="my-table"/>

Topic 2:

<table id="my-table" condition="my-book">
   ...
</table>

If a condition other than "my-book" was specified than the book would fail to build in publican, due to the table missing. This would normally be catched and handled by the csprocessor, however because the checks are done before conditions are processed this isn't happening.

Comment 1 Lee Newson 2013-07-17 03:53:51 UTC
Fixed in 0.33.3

The csprocessor will now do an extra step to process all the topics XML to remove conditional statements before doing the link checks.


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