apache / openwhisk-apigateway

Apache OpenWhisk API Gateway service for exposing actions as REST interfaces.
https://openwhisk.apache.org/
Apache License 2.0
64 stars 45 forks source link

Backend request URI is not computed properly #362

Open hasueki opened 4 years ago

hasueki commented 4 years ago

I have first encountered this issue when trying to invoke an API with base path set to /api, and noticed that the gateway is not properly proxying my request to the configured backend.

The request is hitting the gateway with something similar to apigateway.com/api/abcdef/api and forwarding to the backend with backend.com/abcdef/api, where it should just proxy to backend.com/.

Digging into it further, I have noticed that we cannot set a base path that matches any substring of /api/<tenant>. For example, apigateway.com/api/abcdef/c will proxy to backend.com/def/c.

dgrove-oss commented 4 years ago

Not clear to me if #363 was a complete solution; Should this issue be closed or remain open as only partially addressed.