[
https://issues.apache.org/jira/browse/CAMEL-20853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-20853:
--------------------------------
Summary: Rest DSL - Rest routes can not be grouped anymore (was: Rest
routes can not be grouped anymore)
> Rest DSL - Rest routes can not be grouped anymore
> -------------------------------------------------
>
> Key: CAMEL-20853
> URL: https://issues.apache.org/jira/browse/CAMEL-20853
> Project: Camel
> Issue Type: Bug
> Components: came-core, camel-restlet
> Affects Versions: 4.6.0
> Environment: Java 21; Ubuntu/Windows/Debian;
> Reporter: Teodor
> Priority: Minor
> Fix For: Future
>
>
> A fully functional demo project was created and published on
> [GitHub|[https://github.com/me0x847206/issue-camel]].
> The issue can be seen as part of the following rest route configuration code:
>
> {code:java}
> onException(RuntimeException.class)
> .handled(true)
> .transform()
> .constant("<message>Exception!</message>");
> rest("/say")
> .get("/bye")
> .to("direct:bye");
> from("direct:bye")
> .group("API")
> .transform()
> .constant("<message>Bye World!</message>");
> {code}
>
> Because of the presence of the _onException_ section, the
> _rest:get:/say:/bye_ rest route does not belong to the _API_ group.
> If the _onException_ part is removed then, the _rest:get:/say:/bye_ rest
> route becomes part of the _API_ group as expected (and as it worked on
> previous versions).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)