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 313CB17A99 for ; Mon, 20 Apr 2015 06:45:59 +0000 (UTC) Received: (qmail 87344 invoked by uid 500); 20 Apr 2015 06:45:59 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 87304 invoked by uid 500); 20 Apr 2015 06:45:59 -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 87294 invoked by uid 99); 20 Apr 2015 06:45:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 06:45:59 +0000 Date: Mon, 20 Apr 2015 06:45:59 +0000 (UTC) From: "Anton Koscejev (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8672) Restlet Rest Component properties are ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502424#comment-14502424 ] Anton Koscejev commented on CAMEL-8672: --------------------------------------- I'm not sure how to test this properly, so I devised a test that directly checks the properties from the component in camel context. The test fails without the fix. I was about to create a pull request, but someone else was faster. Well, mine has a test. ;) > Restlet Rest Component properties are ignored > --------------------------------------------- > > Key: CAMEL-8672 > URL: https://issues.apache.org/jira/browse/CAMEL-8672 > Project: Camel > Issue Type: Bug > Components: camel-restlet, rest > Affects Versions: 2.15.1 > Reporter: Anton Koscejev > Fix For: 2.15.2, 2.16.0 > > > Rest properties for RestletComponent are not picked up by the component because it's incorrectly looking for "restle" properties instead of "restlet". > {code} > // configure component options > RestConfiguration config = getCamelContext().getRestConfiguration(); > if (config != null && (config.getComponent() == null || config.getComponent().equals("restle"))) { > // configure additional options on spark configuration > if (config.getComponentProperties() != null && !config.getComponentProperties().isEmpty()) { > setProperties(this, config.getComponentProperties()); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)