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

Rest Component custom routeId is not accessible in processor

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.23.1
    • Fix Version/s: 2.23.4, 2.24.2, 3.0.0.RC1, 3.0.0, 2.25.0
    • Component/s: came-core, rest
    • Labels:
      None
    • Environment:

      Apache camel 2.23.x,Tomcat 9, JDK 8

    • Estimated Complexity:
      Unknown

      Description

      Rest component route id set in routebuilder is not accessible in processor. Below is the example

      RouteBuilder:

      rest("/app").get("/test").id("REST-TEST").to("direct:test").endRest();

      from("direct:test").routeId("TEST").id("TEST").process("TestProcessor");

      or

      rest("/app").get("/test").route().routeId("TEST").id("REST-TEST")

      Processor:

      String routeId = exchange.getFromRouteId();{{}}

      routeId is always random id in case of apache camel 2.23.x but works in 2.22.x versions.

       

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              mahesgov Maheswara Prasanna Govindasamy

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment