Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using forward: within uri configuration #2979

Closed
MASallum opened this issue Jun 11, 2023 · 1 comment
Closed

using forward: within uri configuration #2979

MASallum opened this issue Jun 11, 2023 · 1 comment

Comments

@MASallum
Copy link

MASallum commented Jun 11, 2023

Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.

When updating to Spring Cloud 2022.0.3 from 2022.0.0 I started to encounter a weird behavior by Spring Cloud Gateway. Currently, we are hosting a static html content within the public folder of Gateway project. It was working perfectly, however, after the upgrade to Spring Cloud 2022.0.3 it seems an infinte loop occur when I try to route to the following configuration:

spring:
  main:
    web-application-type: reactive
  cloud:
    gateway:
      routes:
        - id: portal
          uri: "forward:/index.html"
          predicates:
            - Path=/portal/**

Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.

1- set up your spring cloud application.yml file with the following:

spring:
  main:
    web-application-type: reactive
  cloud:
    gateway:
      routes:
        - id: portal
          uri: "forward:/index.html"
          predicates:
            - Path=/portal/**

2- Host any index.html within your public folder ..

3- try to route to it, it will keep throwing errors for infinite time ..

@spencergibb
Copy link
Member

Duplicates #2950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants