Bug 1095022 - Entities in fields like Copyright Holder are not processed correctly
Summary: Entities in fields like Copyright Holder are not processed correctly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.6
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
: 1064707 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-07 01:30 UTC by Matthew Casperson
Modified: 2014-08-04 22:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-28 21:56:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Matthew Casperson 2014-05-07 01:30:26 UTC
Add the following field to a spec:

Copyright Holder = Red Hat, Inc

When the book is built, you'll get this

Copyright © 2014 Red Hat, Inc.

We should get this

Copyright © 2014 Red Hat, Inc.

Comment 1 Lee Newson 2014-05-07 01:38:12 UTC
*** Bug 1064707 has been marked as a duplicate of this bug. ***

Comment 2 Lee Newson 2014-05-13 07:48:26 UTC
Fixed in 1.6-SNAPSHOT build 201405131741

This was caused by escaping all "&" characters as "&". This meant the value in the entity file was "Red Hat, Inc". This has now been updated to remove entities first and then do the replacement.

Comment 4 Matthew Casperson 2014-05-22 03:36:38 UTC
When using built in entities (like   or >) or entities defined in the Entities metadata field in the Copyright Holder metadata field, everything works as expected.

When using entities that don't exist (e.g. Copyright Holder = &NON_EXISTANT;), csprocessor will build the book ok, but Publican won't compile it. 

An error should be generated when the spec is saved for malformed metadata elements.

Comment 5 Lee Newson 2014-05-22 06:03:32 UTC
That's a separate bug and applies to more than Copyright Holder, as such I've opened BZ#1100139 to handle that. Moving this back to ON_QA since that isn't related to this bug, as this is about making sure entities in copyright holder aren't escaped when built.

Comment 6 Matthew Casperson 2014-05-22 22:45:07 UTC
Added entities to Title, Subtitle, Product, Abstract and Copyright Holder. All built ok.


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