Skip to content

Adds tests to demonstrate bug within the toD optimisation#8396

Merged
davsclaus merged 1 commit intoapache:mainfrom
jeroenbellen:main
Sep 23, 2022
Merged

Adds tests to demonstrate bug within the toD optimisation#8396
davsclaus merged 1 commit intoapache:mainfrom
jeroenbellen:main

Conversation

@jeroenbellen
Copy link
Contributor

The toD optimisation does not work when a path variable contains a space.

The HTTP component correctly encodes spaces to %20, but the HttpSendDynamicAware does not follow this logic.
This triggers an URISyntaxException because java.net.URI (on line 168) does not accept an unencoded URL.

It might be worthwhile to add some logging when an URISyntaxException is handled. Currently, it goes unnoticed.

@github-actions
Copy link
Contributor

⚠️ This PR changes Camel components and will be tested automatically.

@github-actions
Copy link
Contributor

❌ Finished component verification: 1 component(s) test failed out of 1 component(s) tested

@davsclaus
Copy link
Contributor

Can you create a JIRA ticket about this

@davsclaus davsclaus merged commit 710667a into apache:main Sep 23, 2022
@davsclaus
Copy link
Contributor

I created a ticket
https://issues.apache.org/jira/browse/CAMEL-18544

davsclaus pushed a commit that referenced this pull request Sep 23, 2022
Co-authored-by: Jeroen Bellen <jeroenb@aviobook.aero>
@jeroenbellen
Copy link
Contributor Author

jeroenbellen commented Sep 26, 2022

@davsclaus Thanks for the fast response and fix! Any chance that the fix can be included within the 3.14.x ?

davsclaus pushed a commit that referenced this pull request Sep 26, 2022
Co-authored-by: Jeroen Bellen <jeroenb@aviobook.aero>
geekrupam pushed a commit to geekrupam/camel that referenced this pull request Oct 7, 2022
Co-authored-by: Jeroen Bellen <jeroenb@aviobook.aero>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants