[
https://issues.apache.org/jira/browse/CAMEL-11216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16015565#comment-16015565
]
ASF GitHub Bot commented on CAMEL-11216:
----------------------------------------
GitHub user ramu11 opened a pull request:
https://github.com/apache/camel/pull/1702
Added Null validation for Host to display validation message
possible fix for 👎
https://issues.apache.org/jira/browse/CAMEL-11216
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ramu11/camel CAMEL-11216
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1702.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1702
----
commit 63d844907b9450120e5ffa31ddf2c1d384d28cc3
Author: Ramu <[email protected]>
Date: 2017-05-18T10:38:47Z
Added Null validation for Host to display validation message
----
> REST-DSL - Producer fails with NPE or other exceptions if you have not set a
> hostname
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-11216
> URL: https://issues.apache.org/jira/browse/CAMEL-11216
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.19.0
> Reporter: Claus Ibsen
> Fix For: 2.19.1, 2.20.0
>
>
> If you forget to configure a host name then the rest producer fails with
> different errors if you use http4, netty4-http, undertow etc.
> We should likely add some validation logic in the rest endpoint / rest
> producer so it can detect this missing configuration and report this in the
> same way.
> You can reproduce from this example by removing host at
> https://github.com/apache/camel/blob/master/examples/camel-example-rest-producer/src/main/java/sample/camel/RestRoute.java#L33
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)