Open
Description
Restlet version: 2.2-m1
My web-service uses the new Jackson 2.1 ("fasterxml") extension, and is accessed via CORS. This means that Internet Explorer 8 & 9 browsers use IE's proprietary XDomainRequest object, which always sends content-type of text/plain.
I have a single resource annotated with @post(json, json)
It seems that when the content-type is text/plain, the framework first attempts to decode the posted representations as Smile format. This causes Jackson's SmileParserBootstrapper to throw a JsonParseException ("Input does not start with Smile format header..."). The first character is of course '{', which is standard JSON but not standard Smile.
for text/plain, JSON should take precedence over Smile.