You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/04/16 15:08:00 UTC

[jira] [Work logged] (CAMEL-14922) Cannot enable cors on platform-http

     [ https://issues.apache.org/jira/browse/CAMEL-14922?focusedWorklogId=423495&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-423495 ]

ASF GitHub Bot logged work on CAMEL-14922:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Apr/20 15:07
            Start Date: 16/Apr/20 15:07
    Worklog Time Spent: 10m 
      Work Description: ppalaga commented on pull request #3752: CAMEL-14922: Cannot enable cors on platform-http
URL: https://github.com/apache/camel/pull/3752
 
 
   https://issues.apache.org/jira/browse/CAMEL-14922
   
   This is fixing the immediate issue reported in CAMEL-14922. However it does not solve the problem that the platform-http component offers no real support for CORS beyond enabling the OPTIONS method handling.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 423495)
    Remaining Estimate: 0h
            Time Spent: 10m

> Cannot enable cors on platform-http
> -----------------------------------
>
>                 Key: CAMEL-14922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14922
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-platform-http
>    Affects Versions: 3.2.0
>            Reporter: Nicola Ferraro
>            Assignee: Peter Palaga
>            Priority: Critical
>             Fix For: 3.3.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I've tried to enable cors via properties using `camel.context.rest-configuration.enable-cors=true` (but it should also happen via DSL configuration), but the platform-http component adds a parameter to the URI that is not recognized downstream: `optionsEnabled=true`.
> I've tested it with both the vertx and the quarkus implementation, both fail with the following exception:
> {code}
> [2] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: platform-http:///timeline?httpMethodRestrict=GET%2COPTIONS&optionsEnabled=true due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{optionsEnabled=true}]
> [2] 	at org.apache.camel.support.DefaultComponent.validateParameters(DefaultComponent.java:358)
> [2] 	at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:261)
> [2] 	at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:780)
> [2] 	... 26 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)