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 C7770191B9 for ; Mon, 11 Apr 2016 14:42:29 +0000 (UTC) Received: (qmail 3239 invoked by uid 500); 11 Apr 2016 14:42:29 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 2823 invoked by uid 500); 11 Apr 2016 14:42:25 -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 2788 invoked by uid 99); 11 Apr 2016 14:42:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 14:42:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F91E2C1F60 for ; Mon, 11 Apr 2016 14:42:25 +0000 (UTC) Date: Mon, 11 Apr 2016 14:42:25 +0000 (UTC) From: "Ralf Steppacher (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9855) REST DSL rest configuration attribute enableCORS has no effect when rendering resource listing/Camel contexts 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-9855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235193#comment-15235193 ] Ralf Steppacher commented on CAMEL-9855: ---------------------------------------- Unfortunately I cannot. My component dependes on activemq-camel which fails to deploy. With Camel 2.17.0 both version 5.12.1 and 5.13.2 fail to install: {noformat} 2016-04-11 16:39:55,914 | ERROR | pool-37-thread-1 | BlueprintContainerImpl | 13 - org.apache.aries.blueprint.core - 1.4.5 | | Unable to start blueprint container for bundle org.apache.activemq.activemq-osgi/5.13.2 ... Caused by: java.lang.ClassNotFoundException: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext not found by org.apache.activemq.activemq-osgi [53] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_77] ... 39 more {noformat} > REST DSL rest configuration attribute enableCORS has no effect when rendering resource listing/Camel contexts > ------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-9855 > URL: https://issues.apache.org/jira/browse/CAMEL-9855 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.16.3 > Environment: Karaf 4.0.3, Java 8, Blueprint > Reporter: Ralf Steppacher > Priority: Minor > > Setting the attribute {{enableCORS}} to true has no effect, i.e. none of the {{Access-Control-*}} are set. To enable CORS headers one has to add an {{apiProperty}} element like so: > {code:xml} > > > > /> > > {code} > See {{RestSwaggerSupport::renderCamelContexts(...)}} and {{RestSwaggerSupport::renderResourceListing(...)}}. > {{RestSwaggerSupport}} adds the headers with capital first letters: {{Access-Control-Allow-Origin}}. However, the response contains the header names all lower case. Not sure where they loose the capitalization. -- This message was sent by Atlassian JIRA (v6.3.4#6332)