Skip Menu |

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

Report information
The Basics
Id: 32342
Status: resolved
Priority: 0/
Queue: Catalyst-Action-REST

People
Owner: Nobody in particular
Requestors: hawson [...] rhythm.com
Cc:
AdminCc:

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



Subject: unsupported media type always returned when using deprecated config for Catalyst::Action::REST
Date: Tue, 15 Jan 2008 19:21:02 -0800 (PST)
To: bug-Catalyst-Action-REST [...] rt.cpan.org
From: Marc Hawson <hawson [...] rhythm.com>
Hello, When using the deprecated config for Catalyst::Action::REST, __PACKAGE__->config->{'serialize'}{'default'} = 'text/x-json'; We get the errors: Content-Type text/x-json is not supported. [info] Could not find a serializer for an empty content type Looks like the $config variable is assigned depending on whether or not the deprecated config is being used. And $map variable is dependent on $config being set properly, but it undefined when using the deprecated config. Please see attached file for suggested patch. One separate issue: when using the non deprecated config, i.e.: __PACKAGE__->config->{'default'} = 'text/x-json'; The preferred content type (xml in our case) seems to always over the default type. Is there any way to override this in our controller config? ---- Distribution name and version: Catalyst-Action-REST-0.60 > Catalyst::Action::SerializeBase Perl version: v5.8.6 built for i586-linux-thread-multi OS Vendor/version: Linux 2.6.16.13-4-23rh #2 SMP i686 athlon i386 GNU/Linux Thanks! -Marc Hawson

Message body is not shown because sender requested not to inline it.

fixed on github; this will be in the next release: http://github.com/hdp/catalyst-action-rest/commit/7b8c5be2c53fb134db3541879c8a1bce5fab2180 (but seriously, stop using it, it's deprecated)