Bug 767000 - Duplicate IDs on elements when topic included more than once
Summary: Duplicate IDs on elements when topic included more than once
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 23:40 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.20.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-20 01:44:48 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 817729 0 unspecified CLOSED Duplicate element ids cause publican build failure 2021-02-22 00:41:40 UTC

Internal Links: 817729

Description Joshua Wulf 2011-12-12 23:40:50 UTC
We've solved it for the section ID, but there are elements inside the section that have IDs on them. 

For example, a topic may have a table in it, and the table may have an ID. When the topic is used twice in the same namespace the section ID is rewritten to a unique ID, but the table ID is not.

The workaround in the meantime is to not put an ID on an element within a section (within a topic).

Comment 1 Lee Newson 2012-01-31 05:07:35 UTC
Fixed.

Now when processing the topics the builder will parse the entire XML data and append to the id a number (this is done before topic injection so that the injected id's are messed up). For the first topic that is a duplicated the id will be left as it originally is incase the id is used as a link. For every ID after that it adds the suffix "-<number>" where <number> is a counter starting from 1.

This should not break any links in the content spec and it should also allow id's to be used within a topic that is duplicated.


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