Extra forward slash added to gateway-http URL
Issue
If the contextPath has been added to the io.fabric8.gateway.http.mapping-apis:
PID: io.fabric8.gateway.http.mapping-apis
uriTemplate {contextPath}
zooKeeperPath /fabric/registry/clusters/apis
Notice the extra slash on the "service path", which in some cases (e.g. REST services) can cause a 404 error:
2017-01-27 09:11:21,265 | INFO | entloop-thread-0 | HttpGatewayHandler | 139 - io.fabric8.gateway-core - 1.2.0.redhat-630187 | Proxying request /cxf/crm?_wadl to service path: /cxf/crm//?_wadl on service: http://my.local:8183/cxf/crm reverseServiceUrl: http://0.0.0.0:9000/cxf/crm
Environment
- Red Hat JBoss Fuse
- 6.3.x
- Fabric
- CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.