camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoran Regvart (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-11046) camel-undertow - Allow to consume from root path more without ending slash
Date Wed, 12 Apr 2017 20:38:41 GMT

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

Zoran Regvart resolved CAMEL-11046.
-----------------------------------
    Resolution: Fixed

Changed the setter for httpURI to set path to {{/}} if not given

> camel-undertow - Allow to consume from root path more without ending slash
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-11046
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11046
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-undertow
>    Affects Versions: 2.18.3
>            Reporter: Claus Ibsen
>            Assignee: Zoran Regvart
>            Priority: Minor
>             Fix For: 2.19.0
>
>
> So you can do
> {code}
>     @Inject @Uri("undertow:http://0.0.0.0:8080")
>     private Endpoint undertow;
> {code}
> Without having to append ending slash, eg
> {code}
>     @Inject @Uri("undertow:http://0.0.0.0:8080/")
>     private Endpoint undertow;
> {code}
> As otherwise you get a stacktrace
> {code}
> 2017-03-21 18:06:15,764 ERROR [stderr] (main) java.lang.IllegalArgumentException: UT000009:
Path must be specified
> 2017-03-21 18:06:15,764 ERROR [stderr] (main) 	at io.undertow.util.PathMatcher.addPrefixPath(PathMatcher.java:115)
> 2017-03-21 18:06:15,764 ERROR [stderr] (main) 	at io.undertow.server.handlers.PathHandler.addPrefixPath(PathHandler.java:132)
> 2017-03-21 18:06:15,765 ERROR [stderr] (main) 	at org.wildfly.extension.undertow.Host.registerHandler(Host.java:213)
> 2017-03-21 18:06:15,765 ERROR [stderr] (main) 	at org.wildfly.extension.camel.undertow.CamelUndertowHostService$WildFlyUndertowHost.registerHandler(CamelUndertowHostService.java:187)
> 2017-03-21 18:06:15,765 ERROR [stderr] (main) 	at org.apache.camel.component.undertow.UndertowConsumer.doStart(UndertowConsumer.java:73)
> 2017-03-21 18:06:15,765 ERROR [stderr] (main) 	at org.wildfly.extension.camel.undertow.WildFlyUndertowComponent$WildFlyUndertowUndertowConsumer.doStart(WildFlyUndertowComponent.java:90)
> 2017-03-21 18:06:15,765 ERROR [stderr] (main) 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
> 2017-03-21 18:06:15,766 ERROR [stderr] (main) 	at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3375)
> 2017-03-21 18:06:15,766 ERROR [stderr] (main) 	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3692)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message