Bug 1018796 - Publican includes XML tags from <abstract> in %description and %post
Summary: Publican includes XML tags from <abstract> in %description and %post
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: future
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-14 12:25 UTC by Ruediger Landmann
Modified: 2013-12-19 02:46 UTC (History)
3 users (show)

Fixed In Version: 4.0.0
Clone Of:
Environment:
Last Closed: 2013-12-19 02:46:38 UTC
Embargoed:


Attachments (Terms of Use)
Sample Book_Info.xml file (1.54 KB, text/xml)
2013-10-14 12:25 UTC, Ruediger Landmann
no flags Details
Sample spec file (24.46 KB, text/x-rpm-spec)
2013-10-14 12:26 UTC, Ruediger Landmann
no flags Details

Description Ruediger Landmann 2013-10-14 12:25:20 UTC
Created attachment 811973 [details]
Sample Book_Info.xml file

Description of problem:
When Publican packages a book, it uses the information from the book's <abstract> to populate the %description and %post sections of the book's spec file

Version-Release number of selected component (if applicable):
publican-3.9.9-0.fc19.t6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Package any book

Actual results:
The entire abstract, including the <abstract> tags itself, and any child tags are included in the %description and %post sections of the spec file

Expected results:
Publican only uses the text from the abstract

Additional info:

Comment 1 Ruediger Landmann 2013-10-14 12:26:10 UTC
Created attachment 811976 [details]
Sample spec file

Comment 2 HSS Product Manager 2013-10-15 00:47:33 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 3 Jeff Fearn 🐞 2013-10-15 00:55:37 UTC
To ssh://git.fedorahosted.org/git/publican.git
   623a7e0..d084e0b  HEAD -> devel

Comment 4 Tomas Capek 2013-10-16 14:24:16 UTC
Does not seem to work:

rpm -q publican
publican-3.9.9-0.fc19.t6.noarch

~/Red-Hat-Books/RHEL7-Security_Guide$ publican package --lang en-US

vim tmp/rpm/Red_Hat_Enterprise_Linux-Security_Guide-7-web-en-US.spec

I can still see DocBook markup in both %description and %post sections.

Am I doing something wrong?

Comment 5 Jeff Fearn 🐞 2013-10-16 23:10:22 UTC
git pull? The version I'm testing is publican-3.9.9-0.el6.t7.noarch and it works for the Users Guide.

If you update and it doesn't work please provide a link to the book source so I can test on that book.

Comment 6 Ruediger Landmann 2013-10-16 23:23:37 UTC
Verified in publican-3.9.9-0.fc19.t7.noarch


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