You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "LEONARDO OLIVEIRA (JIRA)" <ji...@apache.org> on 2017/05/18 19:42:04 UTC
[jira] [Updated] (CAMEL-11299) Camel Rest DSL Does Not Creating
OPTIONS answers for all routes
[ https://issues.apache.org/jira/browse/CAMEL-11299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
LEONARDO OLIVEIRA updated CAMEL-11299:
--------------------------------------
Description:
Camel does not generating the options answer for all routes defined using component servlet, ex:
{quote}
restConfiguration().component("servlet").bindingMode(RestBindingMode.json)
rest("/v1/customers")
.get()
.produces("application/json")
.to("direct:listAll")
.get("/{id}")
.produces("application/json")
.to("direct:findOne")
{quote}
For /v1/customers the request OPTIONS return 200 OK but for /v1/customers/1 the request OPTIONS return 404 not found.
was:
Camel does not generating the options answer for all routes defined using component servlet, ex:
restConfiguration().component("servlet").bindingMode(RestBindingMode.json)
rest("/v1/customers")
.get()
.produces("application/json")
.to("direct:listAll")
.get("/{id}")
.produces("application/json")
.to("direct:findOne")
For /v1/customers the request OPTIONS return 200 OK but for /v1/customers/1 the request OPTIONS return 404 not found.
> Camel Rest DSL Does Not Creating OPTIONS answers for all routes
> ---------------------------------------------------------------
>
> Key: CAMEL-11299
> URL: https://issues.apache.org/jira/browse/CAMEL-11299
> Project: Camel
> Issue Type: Bug
> Components: camel-jackson, camel-servlet
> Affects Versions: 2.19.0
> Environment: Windows 7 JDK 8 Spring Boot 1.5.3
> Reporter: LEONARDO OLIVEIRA
> Priority: Critical
>
> Camel does not generating the options answer for all routes defined using component servlet, ex:
> {quote}
> restConfiguration().component("servlet").bindingMode(RestBindingMode.json)
> rest("/v1/customers")
> .get()
> .produces("application/json")
> .to("direct:listAll")
> .get("/{id}")
> .produces("application/json")
> .to("direct:findOne")
> {quote}
> For /v1/customers the request OPTIONS return 200 OK but for /v1/customers/1 the request OPTIONS return 404 not found.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)