You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sohrab Hosseini (JIRA)" <ji...@apache.org> on 2014/09/29 22:30:33 UTC

[jira] [Created] (CAMEL-7880) Cannot use custom DataFormats in REST DSL

Sohrab Hosseini created CAMEL-7880:
--------------------------------------

             Summary: Cannot use custom DataFormats in REST DSL
                 Key: CAMEL-7880
                 URL: https://issues.apache.org/jira/browse/CAMEL-7880
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.14.0
            Reporter: Sohrab Hosseini


See: http://camel.465427.n5.nabble.com/RestBindingProcessor-JSON-Data-Format-Config-td5757103.html

When using custom JSON data format in REST DSL, the service incorrectly rejects messages with request structure and accepts messages with response structure.

This is due to {{org.apache.camel.model.rest.RestBindingDefinition.createProcessor(RouteContext)}} looking up and configuring the same DataFormat object twice:

{code:java}
DataFormat json = context.resolveDataFormat(name); 
DataFormat outJson = context.resolveDataFormat(name); 
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)