https://bugzilla.redhat.com/show_bug.cgi?id=1710933
Bug ID: 1710933 Summary: Invalid DocumentLocator object passed to Product: Fedora Version: 30 Hardware: x86_64 OS: Linux Status: NEW Component: perl-XML-SAX Assignee: jplesnik@redhat.com Reporter: bug.report.tracker@gmail.com QA Contact: extras-qa@fedoraproject.org CC: caillon+fedoraproject@gmail.com, caolanm@redhat.com, john.j5live@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, perl-devel@lists.fedoraproject.org, rhughes@redhat.com, rstrode@redhat.com, sandmann@redhat.com Target Milestone: --- Classification: Fedora
Created attachment 1569596 --> https://bugzilla.redhat.com/attachment.cgi?id=1569596&action=edit perl XML::SAX::DocumentLocator test
Description of problem: When parsing XLM data, set_document_locator is passed an empty hash instead of DocumentLocator object.
Version-Release number of selected component (if applicable): perl-XML-SAX-Base-1.09-7.fc30.noarch perl-XML-SAX-1.00-4.fc30.noarch
How reproducible: Always
Steps to Reproduce: 1. Run the attached test.
Actual results: Test prints: $VAR2 = {};
Expected results: A valid DocumentLocator object printed: $VAR2 = bless( { 'ColumnNumber' => 0, 'Encoding' => undef, 'XMLVersion' => undef, 'LineNumber' => 1, 'SystemId' => undef, 'PublicId' => undef }, 'XML::SAX::DocumentLocator' );
Additional info: Test works on https://f.perl.bot/