Skip Menu |

This queue is for tickets about the Data-Serializer CPAN distribution.

Report information
The Basics
Id: 15103
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Data-Serializer

People
Owner: neil [...] neely.cx
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.32
Fixed in: (no value)



Subject: Error in Data::Dumper serialization
If the Data::Serializer::Data::Dumper bridge tries to serialize a scalar then the resulting deserialization is often wrong. For example, try this simple test: use Data::Serializer; my $str = '{foo=>"bar"}'; my $s = Data::Serializer->new(serializer => 'Data::Dumper'); print $str, "\n"; print $s->deserialize($s->serialize($str)), "\n"; Actual results: {foo=>"bar"} HASH(0x185487c) Expected results: {foo=>"bar"} {foo=>"bar"} I believe the flaw is the line return $val unless ref($val); which is returning the scalar as a literal instead in a serialized form. I did not find a similar error in the other bridges, just in Data::Serializer::Data::Dumper -- Chris
Thanks for catching that Chris. I've uploaded a fixed version (.34) that should correct this. Take care, Neil