Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D9A617394 for ; Mon, 29 Sep 2014 20:30:34 +0000 (UTC) Received: (qmail 35493 invoked by uid 500); 29 Sep 2014 20:30:33 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 35456 invoked by uid 500); 29 Sep 2014 20:30:33 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 35447 invoked by uid 99); 29 Sep 2014 20:30:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 20:30:33 +0000 Date: Mon, 29 Sep 2014 20:30:33 +0000 (UTC) From: "Sohrab Hosseini (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-7880) Cannot use custom DataFormats in REST DSL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)