https://bugzilla.redhat.com/show_bug.cgi?id=1273668
Bug ID: 1273668 Summary: to_string() appends 'undef' to array attribute Product: Fedora EPEL Version: epel7 Component: perl-Exception-Base Severity: low Assignee: paul@city-fan.org Reporter: jim@apnic.net QA Contact: extras-qa@fedoraproject.org CC: paul@city-fan.org, perl-devel@lists.fedoraproject.org
Description of problem: Invoking to_string has the side effect of appending 'undef' to an array attribute.
Version-Release number of selected component (if applicable): perl-Exception-Base-0.2500-1.el7.noarch.rpm perl v5.16.3
How reproducible: Always
Steps to Reproduce: Can reproduce with this perl script:
#!/bin/perl use warnings; use strict;
use Data::Dumper;
use Exception::Base 'MyException', => { message => 'Validation error', has => [ qw(class errors) ],
string_attributes => [ 'message', 'class', 'errors' ] }; eval { MyException->throw( class => __PACKAGE__, errors => ["error 1", "error 2", "error 3"] ); };
my $exception = $@;
print( Dumper($exception->errors()) . "\n");
$exception->to_string();
print( Dumper($exception->errors()) . "\n");
Actual results: Can see an additional 'undef' in the array returned after invoking to_string();
Expected results: The returned array should be the same as when thrown.
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1273668
Paul Howarth paul@city-fan.org changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/dex4er/p | |erl-Exception-Base/issues/3
https://bugzilla.redhat.com/show_bug.cgi?id=1273668
--- Comment #1 from Fedora Update System updates@fedoraproject.org --- perl-Exception-Base-0.2501-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-22753b2cc4
https://bugzilla.redhat.com/show_bug.cgi?id=1273668
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- perl-Exception-Base-0.2501-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-22753b2cc4
https://bugzilla.redhat.com/show_bug.cgi?id=1273668
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- perl-Exception-Base-0.2501-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1273668
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |perl-Exception-Base-0.2501- | |1.el7 Resolution|--- |ERRATA Last Closed| |2016-09-07 02:16:49
perl-devel@lists.fedoraproject.org