Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11299

Camel Rest DSL Does Not Creating OPTIONS routes for defined routes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.0
    • 2.19.1, 2.20.0
    • camel-jetty, camel-servlet
    • None
    • Windows 7 JDK 8 Spring Boot 1.5.3

    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              leoloko LEONARDO OLIVEIRA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: