Bug 625485

Summary: XML report generated by report lib from within Anaconda is not valid XML
Product: Red Hat Enterprise Linux 6 Reporter: David Kutálek <dkutalek>
Component: libreportAssignee: Denys Vlasenko <dvlasenk>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: dvlasenk, mnowak, nobody+abrt-devel-list, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libreport-2.0.9-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 635116 (view as bug list) Environment:
Last Closed: 2012-06-20 07:03:10 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:
Bug Depends On: 635116    
Bug Blocks:    
Attachments:
Description Flags
Report XML file generated by Anaconda - not a valid xml none

Description David Kutálek 2010-08-19 15:23:58 UTC
Created attachment 439715 [details]
Report XML file generated by Anaconda - not a valid xml

Description of problem:

XML report generated by report lib from within Anaconda is not valid XML:

---
[dkutalek@timothy]$ xmllint ~/Downloads/anaconda-tb-3XJ8VFbLypPT.xml 
/home/dkutalek/Downloads/anaconda-tb-3XJ8VFbLypPT.xml:851: parser error : PCDATA invalid Char value 8
04:25:56,951 INFO    : Writing inode tables:  3/63
                                                  ^
/home/dkutalek/Downloads/anaconda-tb-3XJ8VFbLypPT.xml:851: parser error : PCDATA invalid Char value 8
04:25:56,951 INFO    : Writing inode tables:  3/63
                                                   ^
/home/dkutalek/Downloads/anaconda-tb-3XJ8VFbLypPT.xml:851: parser error : PCDATA invalid Char value 8
04:25:56,951 INFO    : Writing inode tables:  3/63
                                                    ^
...
---

Assuming this is the report lib problem, not Anaconda problem.

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

report-0.18-6.el6.x86_64

How reproducible:

Always

Steps to Reproduce:

1. Run RHEL6 install in virtual machine, use broken updates image to get error at the end of installation - add this parameter to kernel command line: updates=http://akozumpl.fedorapeople.org/broken.img

2. Report problem to eg. scp target 
3. run xmllint on saved report xml file
  
Actual results:

report file is not valid xml

Expected results:

should be valid

Additional info:

See attachment for example file

Comment 1 Gavin Romig-Koch 2011-01-18 20:03:12 UTC
xmllint is complaining about ^H characters in a log file that anaconda includes
in the report.

Comment 2 Gavin Romig-Koch 2011-01-26 18:35:23 UTC
Clearing acks.  This is not easy to solve and not a serious problem.

Comment 5 RHEL Program Management 2011-08-16 03:27:56 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 7 Denys Vlasenko 2012-01-19 13:53:15 UTC
Fixed in git:

commit cb258b9052c2dcfaf95345416ae7d445c2fa75ae
Author: Denys Vlasenko <dvlasenk>
Date:   Thu Jan 19 14:51:42 2012 +0100

    On loading text problem data, escape control chars too

Comment 16 errata-xmlrpc 2012-06-20 07:03:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0841.html