João Rodrigues created CAMEL-7485:
-------------------------------------

             Summary: AdviceWithRouteBuilder.weaveById() creates duplicated 
endpoint
                 Key: CAMEL-7485
                 URL: https://issues.apache.org/jira/browse/CAMEL-7485
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.13.0, 2.12.3
            Reporter: João Rodrigues


AdviceWithRouteBuilder.weaveById() and weaveByToString() creates duplicated 
endpoint if there's a "choice" in camel route. Tested with java 1.7.0_55.

Test case to demonstrate this issue:
- git clone https://github.com/joaocenoura/sandbox.git
- mvn clean package -f sandbox/camel-weaving/pom.xml

Test logs shows the duplicated endpoint insertion.
Excerpt of GoodRouteTest logs:
23:44:45,644 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> before 
[pipeline -> [[To[mock:checkpoint.before]]]]
23:44:45,644 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> after 
[pipeline -> [[To[mock:checkpoint.after]]]]

Excerpt of BadRouteTest logs:
23:44:45,740 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> before 
[pipeline -> [[To[mock:checkpoint.before]]]]
23:44:45,740 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> before 
[pipeline -> [[To[mock:checkpoint.before]]]]
23:44:45,740 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> after 
[pipeline -> [[To[mock:checkpoint.after]]]]
23:44:45,740 INFO AdviceWith (checkpoint) : [To[mock:checkpoint]] --> after 
[pipeline -> [[To[mock:checkpoint.after]]]]




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to