You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jacek Szymański (Jira)" <ji...@apache.org> on 2023/03/20 13:10:00 UTC

[jira] [Updated] (CAMEL-19173) Splitting long uris in XML DSL doesn't work

     [ https://issues.apache.org/jira/browse/CAMEL-19173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacek Szymański updated CAMEL-19173:
------------------------------------
    Description: 
Splitting long uris in XML DSL as described in [https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringlongurisusingnewlines] doesn't work on camel-spring-boot

 

To reproduce:
 * check out camel-spring-boot-examples
 * navigate do the xml subdirectory
 * in src/main/resources/camel/my-route.xml modify from thus:

{{{}        <from uri="timer:hello?period={{timer.period{}}}&}}
{{            repeatCount=10"/>}}
 * run mvn spring-boot:run

result:

{{org.apache.camel.FailedToCreateRouteException: Failed to create route hello: Route(hello)[From[timer:hello?period=\{{timer.period}}&      ... because of Failed to resolve endpoint: timer://hello?+++++++++++++repeatCount=10&period=2000 due to: Failed to resolve endpoint: timer://hello?+++++++++++++repeatCount=10&period=2000 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[\{             repeatCount=10}]}}

 

 

  was:
Splitting long uris in XML DSL as described in [https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringlongurisusingnewlines] doesn't work on camel-spring-boot

 

To reproduce:
 * check out camel-spring-boot-examples
 * navigate do the xml subdirectory
 * in src/main/resources/camel/my-route.xml modify from thus:

{{        <from uri="timer:hello?period=\{{timer.period}}&amp;}}
{{            repeatCount=10"/>}}
 * run mvn spring-boot:run

result:

{{org.apache.camel.FailedToCreateRouteException: Failed to create route hello: Route(hello) }}{{[From[timer:hello?period=\{{timer.period}}&      ... because of Failed to resolve endpoint: }}{{timer://hello?+++++++++++++repeatCount=10&period=2000 due to:  Failed to resolve endpoint: }}{{timer://hello?+++++++++++++repeatCount=10&period=2000 due to: There are 1 parameters that couldn't be set on}} {{the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. }}{{Unknown parameters=[\{             repeatCount=10}]}}

 

 


> Splitting long uris in XML DSL doesn't work
> -------------------------------------------
>
>                 Key: CAMEL-19173
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19173
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 3.20.0, 3.20.2, 4.0-M2
>            Reporter: Jacek Szymański
>            Priority: Minor
>
> Splitting long uris in XML DSL as described in [https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringlongurisusingnewlines] doesn't work on camel-spring-boot
>  
> To reproduce:
>  * check out camel-spring-boot-examples
>  * navigate do the xml subdirectory
>  * in src/main/resources/camel/my-route.xml modify from thus:
> {{{}        <from uri="timer:hello?period={{timer.period{}}}&}}
> {{            repeatCount=10"/>}}
>  * run mvn spring-boot:run
> result:
> {{org.apache.camel.FailedToCreateRouteException: Failed to create route hello: Route(hello)[From[timer:hello?period=\{{timer.period}}&      ... because of Failed to resolve endpoint: timer://hello?+++++++++++++repeatCount=10&period=2000 due to: Failed to resolve endpoint: timer://hello?+++++++++++++repeatCount=10&period=2000 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[\{             repeatCount=10}]}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)