Skip Menu |

This queue is for tickets about the Catalyst-Action-REST CPAN distribution.

Report information
The Basics
Id: 72327
Status: new
Priority: 0/
Queue: Catalyst-Action-REST

People
Owner: Nobody in particular
Requestors: bokutin [...] cpan.org
Cc:
AdminCc:

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



Hi. I found a bug. When accepted_content_types is empty, preferred_content_type is empty, preferred_content_type constraint ( isa => "Str" ) is failed. lwp-request http://127.0.0.1:3000/Action-REST_enabled_action/<ID>/item Caught exception in CatApp::Web::Controller::Root->setup "Attribute (preferred_content_type) does not pass the type constraint because: Validation failed for 'Str' with value undef at reader Moose::Meta::... I make patch for fix. lib/Catalyst/TraitFor/Request/REST.pm sub _build_preferred_content_type { $_[0]->accepted_content_types->[0] // "" } Thanks.