Spencer Gibb
55b3cd0c51
Fixes routing issue with path filters and static uri ( #3747 )
...
* Fixes routing issue with path filters and static uri
The problem arises from when MvcUtils.setRequestUrl is called depending on if the route was created via config, using `http(uri)` or having it set in a before filter.
To fix this, the uri is now always set in a before filter and the `http(uri)` methods are deprecated in favor of a BeforeFilterFunctions.uri() method.
A new DefaultHandlerSupplier was created to use an updated HandlerDiscoverer.Result that has fields for lowerPrecedenceFilters and higherPrecedenceFilters as the `http()` family of Handler methods need associated filters.
This results in a more consistent handling of the request url attribute.
Existing methods and constructors are deprecated.
Fixes gh-3736
2025-03-28 14:59:19 -04:00
Ryan Baxter
c21ea8858c
Merge pull request #3713 from JoeCqupt/main
...
RetryGatewayFilterFactory RetryConfig support Jitter & Timeout
2025-03-20 10:10:08 -04:00
spencergibb
c1c741d022
For lb: scheme, put associated filters last.
...
This makes sure the lb filter runs after path modifying filters like stripPrefix.
See gh-3443
2025-03-17 16:12:09 -04:00
spring-builds
160c82057e
Bumping versions
2025-03-15 13:26:33 +00:00
jiangyuan
9eb9165927
add docs and unit-test
...
Signed-off-by: jiangyuan <joe469391363@gmail.com >
2025-03-13 11:04:10 +08:00
spencergibb
159ce34abe
Adds support for retry with request body.
...
Adds MvcUtils.getOrCacheBody() used by RetryFilterFunctions.retry().
Moves retry tests into RetryFilterFunctionTests.java
Fixes gh-3336
2025-02-11 19:39:39 -05:00
Khan / 이창민
8f3ce76668
Fix: incorrect link in configuration-properties
2024-11-19 11:24:33 -05:00
spring-builds
679bc2c232
Bumping versions
2024-10-15 13:28:14 +00:00
Abimael Sergio
0ce2485471
Improve documentation, add reference of HttpClientCustomizer.
...
Fixes gh-2623
Fixes gh-3381
2024-09-27 12:22:49 -04:00
tungj
4aa7c08867
Fix example code to compile
...
Fixes gh-3427
2024-09-25 13:17:42 -04:00
Joris Kuipers
b435ce3575
Prevent Content-Length and Host headers from being copied by default ( #3313 )
...
Also remove the bogus spring.cloud.gateway.proxy.auto-forward setting from the tests.
Fixes gh-3154
2024-07-03 11:32:23 -04:00
wind57
be86df976f
typo
2024-04-10 18:49:53 +03:00
wind57
2721fafb08
review comments
2024-04-10 18:23:02 +03:00
wind57
6654ba1838
add documentation
2024-04-10 17:47:25 +03:00
spencergibb
d722898970
Adds server-webmvc to list of config properties.
...
Fixes gh-3337
2024-04-05 15:48:36 -04:00
sgibb
f0ad75a22f
Documents registration of custom filters and predicates.
...
This allows them to be used in external configuration.
Fixes gh-3268
2024-03-19 15:41:32 -04:00
sgibb
430607c8dd
Documents proper order for Servlet Filtters.
...
Fixes gh-3244
2024-03-19 14:42:28 -04:00
sgibb
2d1b7fa37a
Adds warning about paths on route URIs being ignored.
...
Fixes gh-3292
2024-03-15 16:48:41 -04:00
sgibb
95a3d2c527
Updates image backgrounds to work on dark or light theme.
2024-03-15 16:47:41 -04:00
sgibb
8cea23dcbf
Updated intro for server and proxy exchange.
...
Notes that each is available for webflux and mvc.
2024-03-15 16:27:55 -04:00
sgibb
b983876ed1
Adds "How to Include" for Proxy Exchange variant.
2024-03-15 16:27:54 -04:00
buildmaster
f1f916fb46
Bumping versions
2024-03-15 12:10:09 +00:00
sgibb
84502853a1
Creates sharing-routes.adoc from misplaced part of actuator-api.adoc
2024-03-14 22:29:12 -04:00
buildmaster
f7de687ca2
Bumping versions
2024-03-13 12:13:44 +00:00
sgibb
3c627f31f7
Updates example config in the-discoveryclient-route-definition-locator.adoc
...
Fixes gh-2896
Co-authored-by: ecnabogs <sgobance@live.com >
2024-03-08 17:00:05 -05:00
sgibb
688391a008
Adds key-resolver example to requestratelimiter-factory.adoc
...
Fixes gh-2733
Co-authored-by: Archimedes Trajano <developer@trajano.net >
2024-03-08 15:56:48 -05:00
sgibb
f6182dfa03
Updates documentation to correct RewriteLocationResponseHeaderGatewayFilterFactory parameters and default value
...
Fixes #2753
Co-authored-by: ice2shell <ice2shell@outlook.com >
2024-03-08 15:43:53 -05:00
Tony Clarke
e0adbc0114
Update dashboard to Grafana 9.x ( #3136 )
2024-03-08 13:57:52 -05:00
Chanbok Wi
b26e671c45
Fix typo ( #3146 )
...
Co-authored-by: zolazz <148365012+zolazz@users.noreply.github.com >
2024-03-08 13:53:40 -05:00
NilsE
f3c1f2ebd5
Add missing colon ( #3187 )
2024-03-08 13:50:35 -05:00
sgibb
eb312e1c07
Polishing gh-3223 adds route method to static import
2024-03-08 12:34:46 -05:00
tungj
35c530e59b
Fix documentation sample imports and missing .build() call ( #3223 )
...
* Fix javadoc sample imports and missing .build() call
* Correct static import and missing .build() in second example
2024-03-08 12:33:18 -05:00
bb chen
966a183e45
Update gateway-request-predicates.adoc ( #3208 )
...
Update gateway-request-predicates.adoc
2024-03-08 12:31:45 -05:00
sgibb
4ff85558d1
Hardcode github code location temporarily.
...
See https://github.com/spring-cloud/spring-cloud-build/issues/244
Fixes gh-3155
2023-12-22 11:42:13 -05:00
sgibb
dd4840ba45
Adds missing yaml config and fixes missing mvc key.
...
Fixes gh-3174
2023-12-22 11:18:45 -05:00
sgibb
7e0bbfee49
Adds spring_cloud_gateway_mvc_diagram.png to how-it-works.adoc
...
Fixes gh-3173
2023-12-21 16:27:33 -05:00
sgibb
a26f652eab
Adds TODO
2023-12-05 18:53:26 -05:00
Ryan Baxter
bbc45599b5
Moving documentation over from #3163
2023-12-05 16:33:55 -05:00
sgibb
b13a82850d
Update ratelimiter.adoc for Bucket4j rate limiter.
2023-12-05 16:17:23 -05:00
sgibb
42667384a5
Adds retry.adoc retry filter docs
2023-12-05 16:17:21 -05:00
sgibb
bf3f60db94
Adds loadbalancer.adoc docs
2023-12-05 16:17:20 -05:00
sgibb
9ad7b07ed7
Removes secureheaders.adoc since that is functionality in spring security for MVC
2023-12-05 16:17:19 -05:00
sgibb
063ded5a14
Fixes property keys to include mvc
2023-12-05 16:17:19 -05:00
sgibb
3c9372587e
Updates tokenrelay.adoc for MVC
2023-12-05 16:17:19 -05:00
Ryan Baxter
7c275f59b8
Fixing docs
2023-12-05 11:46:52 -05:00
sgibb
fb11d3a740
Initial docs on writing predicates and filters.
...
Fixes gh-3143
2023-12-05 00:42:11 -05:00
sgibb
563a0ab16d
Adds GatewayRequestPredicates.query()
2023-12-04 20:05:08 -05:00
sgibb
7a419c8e5e
Initial gateway-request-predicates.adoc docs
2023-12-04 17:57:34 -05:00
sgibb
ff98d6298c
Initial documentation.
...
Includes general documentation and most filters.
TODO: request predicates and custome dev docs.
2023-12-04 15:39:59 -05:00
JesseEstum
d0f8dd4f27
Fix typo in docs ( #3061 )
2023-11-03 12:34:10 -04:00