Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-4301

Url rewriting policy not working with APIAP

XMLWordPrintable

    • 3
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +
    • 3scale 2020-02-17

      Configuring the Url rewriting policy on an APIAP doesn't work.
      If placed before Apicast it works as expected if placed after it doesn't work.

      In attach a sample configuration.

      Target url: :8080/echo/v1/test
      Destination expected url: echo-api/v5/test
      Current destination: echo-api/v1/test

      Dev Notes

      Solution is to do something in the UI to force Url rewriting policy to be before Apicast. We have done this before for a different case (routing policy). This does not work because in the product we replace the original request.

      Easiest solution: use "uri" instead of "original_request.path" in the routing policy injected for APIAP.

              Unassigned Unassigned
              rhn-support-cpalmier Carlo Palmieri (Inactive)
              Guilherme Cassolato Guilherme Cassolato
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: