You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Siva Kumar (Jira)" <ji...@apache.org> on 2025/04/21 09:29:00 UTC
[jira] [Commented] (CAMEL-21998) rest-dsl - Wrong routeId assigned during the start of application
[ https://issues.apache.org/jira/browse/CAMEL-21998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946078#comment-17946078 ]
Siva Kumar commented on CAMEL-21998:
------------------------------------
Hi [~davsclaus] ,
Thank you. It is working as expected. "camel.rest.inline-routes" value true behavior is changed. After change the value from true to false then it is working fine. Is it possible let you know when 4.12.0 available to use it? We can see some choice syntax is change.
{color:#2aa198}Regards,{color}
{color:#2aa198}Siva {color}
> rest-dsl - Wrong routeId assigned during the start of application
> -----------------------------------------------------------------
>
> Key: CAMEL-21998
> URL: https://issues.apache.org/jira/browse/CAMEL-21998
> Project: Camel
> Issue Type: Bug
> Components: came-core, camel-rest-openapi
> Affects Versions: 4.10.3, 4.11.0
> Environment: Linux
> Reporter: Siva Kumar
> Priority: Minor
>
> Wrong routeId assigned during the start of application
> The following design code, assigned routeId "get-product-stock-id" is not assigned during startup, routeId of the to({color:#2a00ff}"direct:receive-inventory-search-details"{color}) is assigned.
> {color:#000000} rest({color}{color:#2a00ff}"/v4"{color}{color:#000000}){color}
> {color:#000000} .get({color}{color:#2a00ff}"/productStock"{color}{color:#000000}){color}
> {color:#000000} .routeId({color}{color:#2a00ff}"{*}get-product-stock-id{*}"{color}{color:#000000}){color}
> {color:#000000} .params({color}{color:#0000c0}apiDocHeader{color}{color:#000000}.getApiDocHeaders()){color}
> {color:#000000} .tag({color}{color:#0000c0}TAG_GET_PRODUCT_STOCK_API{color}{color:#000000}){color}
> {color:#000000} .description({color}{color:#0000c0}GET_PRODUCT_STOCK_API_DESCRIPTION{color}{color:#000000}){color}
> {color:#000000} .param().name({color}{color:#2a00ff}"type"{color}{color:#000000}).type(RestParamType.{color}{color:#0000c0}query{color}{color:#000000}).required({color}{color:#7f0055}true{color}{color:#000000}).endParam(){color}
> {color:#000000} .param().name({color}{color:#2a00ff}"place_id"{color}{color:#000000}).type(RestParamType.{color}{color:#0000c0}query{color}{color:#000000}).required({color}{color:#7f0055}false{color}{color:#000000}).endParam(){color}
>
> {color:#000000} .outType(InventorySearchResponse.{color}{color:#7f0055}class{color}{color:#000000}){color}
>
> {color:#000000} .responseMessage().code(HttpStatus.{color}{color:#0000c0}OK{color}{color:#000000}.value()).message(OpenApiConstants.{color}{color:#0000c0}HTTP_OK_DESCRIPTION{color}{color:#000000}).responseModel(InventorySearchResponse.{color}{color:#7f0055}class{color}{color:#000000}).endResponseMessage(){color}
> {color:#000000} .responseMessage().code(HttpStatus.{color}{color:#0000c0}BAD_REQUEST{color}{color:#000000}.value()).message(OpenApiConstants.{color}{color:#0000c0}HTTP_STATUS_BAD_REQUEST_DESCRIPTION{color}{color:#000000}).responseModel(ApiErrorResponse.{color}{color:#7f0055}class{color}{color:#000000}).endResponseMessage(){color}
> {color:#000000} .responseMessage().code(HttpStatus.{color}{color:#0000c0}INTERNAL_SERVER_ERROR{color}{color:#000000}.value()).message(OpenApiConstants.{color}{color:#0000c0}HTTP_STATUS_INTERNAL_SERVER_ERROR_DESCRIPTION{color}{color:#000000}).responseModel(ApiErrorResponse.{color}{color:#7f0055}class{color}{color:#000000}).endResponseMessage(){color}
> {color:#000000} .to({color}{color:#2a00ff}"direct:receive-inventory-search-details"{color}{color:#000000});{color}
>
>
> {color:#000000}Log information can be found in below. (4.11.0/4.10.3){color}
> {color:#000000}{"@timestamp":"2025-04-20T19:16:49.8755361+05:30","@version":"1","message":" Started *direct-receive-inventory-search-details-id* (rest://get:/v4:/productStock)","logger_name":"org.apache.camel.impl.engine.AbstractCamelContext","thread_name":"main","level":"INFO","level_value":20000}{color}
>
> We observed when upgrade from 4.3 to 4.11 version.
>
> 4.3 log entry:
> {"@timestamp":"2025-04-20T10:44:26.788769676+08:00","@version":"1","message":" Started *query-product-stock-id* (rest://post:/v4:/queryProductStock)","logger_name":"or
> g.apache.camel.impl.engine.AbstractCamelContext","thread_name":"main","level":"INFO","level_value":20000}
>
>
> {color:#000000}routeId's are assigning wrongly in 4.11.0/4.10.3{color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)