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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.23.1
    • 2.23.4, 2.24.2, 3.0.0.RC1, 3.0.0, 2.25.0
    • came-core, rest
    • None
    • Apache camel 2.23.x,Tomcat 9, JDK 8

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ffang Freeman Yue Fang
            mahesgov Maheswara Prasanna Govindasamy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment