camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11299) Camel Rest DSL Does Not Creating OPTIONS routes for defined routes
Date Mon, 22 May 2017 12:17:04 GMT

    [ 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)

Mime
View raw message