You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/05/22 12:17:04 UTC

[jira] [Commented] (CAMEL-11299) Camel Rest DSL Does Not Creating OPTIONS routes for defined routes

    [ https://issues.apache.org/jira/browse/CAMEL-11299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16019514#comment-16019514 ] 

Claus Ibsen commented on CAMEL-11299:
-------------------------------------

This is also a problem with camel-jetty

> Camel Rest DSL Does Not Creating OPTIONS routes for defined routes
> ------------------------------------------------------------------
>
>                 Key: CAMEL-11299
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11299
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jetty, camel-servlet
>    Affects Versions: 2.19.0
>         Environment: Windows 7 JDK 8 Spring Boot 1.5.3
>            Reporter: LEONARDO OLIVEIRA
>            Assignee: Claus Ibsen
>             Fix For: 2.19.1, 2.20.0
>
>
> Camel does not generating the options answer for all routes defined using component servlet, ex:
> {code}
> restConfiguration().component("servlet").bindingMode(RestBindingMode.json)
> rest("/v1/customers")
>    .get()
>       .produces("application/json")
>       .to("direct:listAll")
>    .get("/{id}")
>       .produces("application/json")
>       .to("direct:findOne")
> {code}
> 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)