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

Camel Rest DSL Does Not Creating OPTIONS routes for defined routes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.0
    • Fix Version/s: 2.19.1, 2.20.0
    • Component/s: camel-jetty, camel-servlet
    • Labels:
      None
    • Environment:

      Windows 7 JDK 8 Spring Boot 1.5.3

    • Estimated Complexity:
      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

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                leoloko LEONARDO OLIVEIRA
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: