Skip Menu |

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

Report information
The Basics
Id: 87836
Status: open
Priority: 0/
Queue: Catalyst-Action-Serialize-Data-Serializer

People
Owner: Nobody in particular
Requestors: dam [...] cpan.org
gamesh.g [...] gmail.com
Cc:
AdminCc:

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



Subject: Test errors
Date: Wed, 14 Aug 2013 01:09:39 +0100
To: bug-Catalyst-Action-Serialize-Data-Serializer [...] rt.cpan.org
From: Gil Gamesh <gamesh.g [...] gmail.com>
Hi, I get the following errors while trying to update... Installing Catalyst::Action::Deserialize::Data::Serializer (1.08) Running [/home/jkobrien/perl5/perlbrew/perls/perl-5.16.2/bin/perl -e use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; } /home/jkobrien/.cpanplus/5.16.2/build/Catalyst-Action-Serialize-Data-Serializer-1.08/Makefile.PL]... *** Module::AutoInstall version 1.06 *** Checking for Perl dependencies... *** Since we're running under CPANPLUS, I'll just let it take care of the dependency's installation later. [Core Features] - Test::More ...loaded. (0.98 >= 0.88) - Catalyst::Action::REST ...loaded. (1.11 >= 1.08) - Moose ...loaded. (2.1005 >= 1.03) - namespace::autoclean ...loaded. (0.13) - Catalyst::Runtime ...loaded. (5.90042 >= 5.80030) - Data::Serializer ...loaded. (0.59 >= 0.36) *** Module::AutoInstall configuration finished. Writing Makefile for Catalyst::Action::Serialize::Data::Serializer Writing MYMETA.yml and MYMETA.json Running [/usr/bin/make test]... PERL_DL_NONLAZY=1 /home/jkobrien/perl5/perlbrew/perls/perl-5.16.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/data-serializer.t # Failed test 'POST text/x-data-dumper succeeded' # at t/data-serializer.t line 53. # Failed test 'POST text/x-data-dumper data matches' # at t/data-serializer.t line 54. # got: 'Content-Type text/x-data-dumper had a problem with your request. # ***ERROR*** # 'ref-to-glob cast' trapped by operation mask at (eval 633) line 1, <$fh> line 2. # ' # expected: 'is good for monkey' # Failed test 'POST Data::Dumper data error matches' # at t/data-serializer.t line 73. # 'Content-Type text/x-data-dumper had a problem with your request. # ***ERROR*** # 'ref-to-glob cast' trapped by operation mask at (eval 649) line 1, <$fh> line 2. # ' # doesn't match '(?^s:Content-Type text/x-data-dumper had a problem with your request.*'die' trapped by operation mask)' # Looks like you failed 3 tests of 31. t/data-serializer.t .. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/31 subtests (less 4 skipped subtests: 24 okay) Test Summary Report ------------------- t/data-serializer.t (Wstat: 768 Tests: 31 Failed: 3) Failed tests: 12-13, 31 Non-zero exit status: 3 Files=1, Tests=31, 2 wallclock secs ( 0.04 usr 0.00 sys + 1.90 cusr 0.07 csys = 2.01 CPU) Result: FAIL Failed 1/1 test programs. 3/31 subtests failed. make: *** [test_dynamic] Error 3
Subject: [patch] Catalist deserializer: Test errors
Attached is a patch that adds rv2gv to deserializer's Safe compartment, making the tests pass.
Subject: Deserializer-enable-rv2gv.patch
Description: Enable rv2gv in deserializer's Safe compartment without this tests fail with: 'ref-to-glob cast' trapped by operation mask Bug: https://rt.cpan.org/Public/Bug/Display.html?id=87836 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719983 Author: Damyan Ivanov <dmn@debian.org> Forwarded: yes --- a/lib/Catalyst/Action/Deserialize/Data/Serializer.pm +++ b/lib/Catalyst/Action/Deserialize/Data/Serializer.pm @@ -8,7 +8,7 @@ use Data::Serializer; use Safe; use Scalar::Util qw(openhandle); my $compartment = Safe->new; -$compartment->permit_only( qw(padany null lineseq const pushmark list anonhash anonlist refgen leaveeval undef) ); +$compartment->permit_only( qw(padany null lineseq const pushmark list anonhash anonlist refgen leaveeval undef rv2gv) ); our $VERSION = '1.08'; $VERSION = eval $VERSION;
Show quoted text
> Attached is a patch that adds rv2gv to deserializer's Safe > compartment, making the tests pass.
Hi, Dod you have a chance to take a look at that patch? Could it be included in a future release of Catalyst-Action-Serialize-Data-Serializer? Cheers, dam
Subject: Re: [rt.cpan.org #87836] Test errors
Date: Sat, 25 Jan 2014 14:28:03 +0000
To: bug-Catalyst-Action-Serialize-Data-Serializer [...] rt.cpan.org
From: Gil Gamesh <gamesh.g [...] gmail.com>
Hi, Sorry, I missed that patch somehow. Yes, the tests pass without error when the patch is applied. Many thanks, Gil On 24 January 2014 18:45, Damyan Ivanov via RT < bug-Catalyst-Action-Serialize-Data-Serializer@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=87836 > >
> > Attached is a patch that adds rv2gv to deserializer's Safe > > compartment, making the tests pass.
> > Hi, > > Dod you have a chance to take a look at that patch? Could it be included > in a future release of Catalyst-Action-Serialize-Data-Serializer? > > Cheers, > dam >