Bug 540361

Summary: publican.cfg variables do not override book_info.xml
Product: [Community] Publican Reporter: Christopher Curran <ccurran>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 1.6CC: jfearn, mmcallis, nb, publican-list, rlandman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 540750 (view as bug list) Environment:
Last Closed: 2009-11-24 23:06:37 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:

Description Christopher Curran 2009-11-23 06:57:54 UTC
Description of problem:
Given the existence of the publican.cfg file publican should accept arbitrary and non-latin names, products and versions. The book_info.xml file should allow any value in productnumber, title, edition, subtitle and so on.

Version-Release number of selected component (if applicable):
1.1

How reproducible:
Every time. 

Steps to Reproduce:
1. Create a book
2. Put something funky in the edition (for example: 愛) and then configure a numerical version in the publican config file (for example: 1).
3. book breaks (see "results").
  
Actual results:
Invalid format for version. Value (愛) does not conform to constraint ([^0-9.]) at /usr/bin/publican line 362


Expected results:
These constraints should be removed if there is a value present in the configuration file.

The book should build and output an RPM with version 1 and a product with edition 愛.

Additional info:
Edition Beta/Alpha and prerelease should work. Product numbers and editions should support latin characters, non latin characters and punctuation.

Comment 1 Jeff Fearn 🐞 2009-11-24 03:02:28 UTC
*** Bug 540750 has been marked as a duplicate of this bug. ***

Comment 2 Jeff Fearn 🐞 2009-11-24 03:20:05 UTC
tested building and packaging with the following settings.

$ grep edition en-US/Book_Info.xml publican.cfg 
en-US/Book_Info.xml:    <edition>愛</edition>
publican.cfg:edition: 1.2

Built and packaged correctly with o error messages. Please supply a link to your source so we can check it for oddities.

Comment 3 Christopher Curran 2009-11-24 23:38:44 UTC
This works in 1.2. It just affected 1.1. Fixed.