Red Hat Bugzilla – Bug 112593
rewrite perl-XML-Dumper spec
Last modified: 2007-11-30 17:10:34 EST
Description of problem:
Using this version of XML::Dumper I ran into some very strange
problems which weren't expected during storing a Perl hash into XML.
E.g. if a key contain char ', strange things are happen (value isn't
stored in XML.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a hash where a key contain a '
Actual Results: Problems
Expected Results: No problems
All issues I ran into are solved using current version 0.67.
According to the ChangeLog, many issues were solved since 0.40.
I found version 0.40 very unuseful...
Both Fedora Core release 1.91 (FC2) and the Fedora Core development
tree contain the package "perl-XML-Dumper-0.71-1".
Does this package solve your issues?
perl-XML-Dumper could use a spec rewrite
Created attachment 113685 [details]
0.4 had indeed some serious XML escaping bugs. The following trivial script
demonstrates the issues with it, and works as expected with 0.71:
my %h = ( "foo'bar" => '"quu<>x', 'b"a"r' => "baz" );
print new XML::Dumper->pl2xml(\%h);
Attached is a specfile rewrite which fixes the build error with 0.71-3 as well
as some other smallish issues (see %changelog).