Martin4R opened a new issue, #2857:
URL: https://github.com/apache/apisix-ingress-controller/issues/2857

   ### Description
   
   As a user I want that APISIX Ingress-Controller supports the K8s Gateway API 
HttpRoute filter feature "Path redirects" (see 
https://gateway-api.sigs.k8s.io/guides/user-guides/http-redirect-rewrite/#path-redirects).
   
   Currently a valid Gateway API definition like the following ends in a "Too 
many redirects" error in the browser.
   ```
   apiVersion: gateway.networking.k8s.io/v1
   kind: HTTPRoute
   metadata:
     name: my-redirect
   spec:
     parentRefs:
       - namespace: apisix
         name: apisix
     rules:
     - matches:
           - path:
               type: Exact
               value: /my-path
       filters:
       - type: RequestRedirect
         requestRedirect:
           path:
             type: ReplaceFullPath
             replaceFullPath: /my-path/
           statusCode: 307
   ``` 
   
   The issue is, that function fillPluginFromHTTPRequestRedirectFilter 
currently does not inspect reqRedirect.Path and always uses the request's uri 
instead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to