camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LEONARDO OLIVEIRA (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-11299) Camel Rest DSL Does Not Creating OPTIONS answers for all routes
Date Thu, 18 May 2017 19:41:04 GMT
LEONARDO OLIVEIRA created CAMEL-11299:
-----------------------------------------

             Summary: 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:

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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message