You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Teodor (Jira)" <ji...@apache.org> on 2024/06/10 08:22:00 UTC
[jira] [Updated] (CAMEL-20853) Rest routes can not be grouped anymore
[ https://issues.apache.org/jira/browse/CAMEL-20853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Teodor updated CAMEL-20853:
---------------------------
Description:
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).
was:
A fully functional demo project was created and published on [GitHub|[https://github.com/me0x847206/issue-camel|https://github.com/me0x847206/issue-camel].]].
The issue can be seen as part of the following rest route configuration code:
```
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>");
```
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).
> 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)