Commit Graph

761 Commits

Author SHA1 Message Date
buildmaster
65dfd2e1e4 Bumping versions 2019-11-07 15:10:32 +00:00
Ryan Baxter
6359c45ab5 Formatting 2019-11-05 15:48:10 -05:00
Ryan Baxter
24553192fc Merge remote-tracking branch 'Upstream/master' into spring-cloud-circuitbreaker-filter 2019-11-05 15:40:54 -05:00
Ryan Baxter
76e4187484 Initial set of changes to add a circuit breaker filter using Spring Cloud CircuitBreaker 2019-11-05 15:40:33 -05:00
buildmaster
65b10e62a9 Going back to snapshots 2019-10-24 20:58:05 +00:00
buildmaster
fc44b4bf6b Update SNAPSHOT to 2.2.0.RC1 2019-10-24 20:57:20 +00:00
Tim Ysewyn
6560a9ce65 Support blocking discovery client when reactive is disabled 2019-10-18 18:11:07 +02:00
Ryan Baxter
a2f8746249 Merge remote-tracking branch 'origin/2.1.x' 2019-10-09 12:27:21 -05:00
Ryan Baxter
9c152d5763 Formatting changes 2019-10-09 12:18:34 -05:00
Ryan Baxter
8ef2b419d2 Fixing variable typo. Fixes #1331 2019-10-09 12:13:18 -05:00
buildmaster
755b706c36 Going back to snapshots 2019-10-03 19:58:09 +00:00
buildmaster
a855caefec Update SNAPSHOT to 2.2.0.M3 2019-10-03 19:57:06 +00:00
Tim Ysewyn
9492a63c55 Use reactive discovery client for DiscoveryClientRouteDefinitionLocator 2019-10-03 12:56:24 +02:00
Spencer Gibb
4c467788f0 Merge branch '2.1.x' 2019-10-01 16:07:07 -04:00
Spencer Gibb
856a2417b6 Updates cacheRequestBody() to handle the empty body case.
This allows the AdaptCahcedBodyGlobalFilter to not worry about handling empty.

Fixes gh-1315
2019-10-01 16:06:32 -04:00
Nikita Konev
e285b841de fix post request with body processed twice in retry filter https://github.com/spring-cloud/spring-cloud-gateway/issues/1315 2019-10-01 16:06:32 -04:00
Spencer Gibb
eefdb5adc7 Formatting 2019-09-19 19:07:25 -04:00
Spencer Gibb
6ceb2b1fbc Polish removes deprecated method and uses available const. 2019-09-19 19:07:09 -04:00
Spencer Gibb
a860e55215 Merge branch '2.1.x' 2019-09-19 19:03:07 -04:00
Spencer Gibb
0d2b87af30 Updates NettyRoutingFilter to set request headers early.
By setting them early, it doesn't overwrite the Transfer-Encoding:chunked header automatically set by the Reactor Netty HttpClient.

This caused bad requests to be sent downstream.

fixes gh-1181
2019-09-19 18:57:42 -04:00
Spencer Gibb
d534f71a48 Makes test less brittle 2019-09-19 18:55:43 -04:00
Ingyu Hwang
bb33936911 Adds PropertiesTagsProvider for static metrics (#1311)
Fixes gh-1310
2019-09-19 13:11:29 -04:00
Olga Maciaszek-Sharma
cfd2723c30 Merge branch '2.1.x'
# Conflicts:
#	spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/actuate/GatewayControllerEndpointTests.java
2019-09-18 12:45:32 +02:00
Dennis Menge
29296eda41 relates to gh-600 Add Predicate and Filter validation to Route… (#1212)
* relates to gh-600 Add Predicate and Filter validation to Route Creation Actuator Endpoint

* renamed a variable in validateRouteDefinition(RouteDefinition) to better fit the injected parameter
2019-09-16 12:30:45 -04:00
Andreas Kluth
3cd2878fd2 Fixes cache is cleared on refresh but not actually refreshed. Fixes gh-1168. (#1215)
* Fixes cache is cleared on refresh but not actually refreshed. Fixes gh-1168

* Made DiscoveryClientRouteDefinitionLocator non blocking, removed scheduler from CachingRouteDefinitionLocator.

* Changed how the blocking code is migrated to the non blocking world in DiscoveryClientRouteDefinitionLocator. 

Fixes gh-1168
2019-09-16 12:24:08 -04:00
Olga Maciaszek-Sharma
b25ce0ec04 Gh 1294 add reactive sc loadbalancer support (#1295)
* Initial ReactiveLoadBalancer support

# Conflicts:
#	spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilter.java

* Optimise imports. Minor refactoring.

* Use `LoadBalancerUriTools` for reconstructing uris.
Handle 404 exceptions. Add more tests and javadocs.

* Finish autoConfiguration and dependencies setup.

* Rename to `ReactorLoadBalancerClientFilter`. Fix test. Add docs.

* Fix after review.
2019-09-13 12:16:07 +02:00
Spencer Gibb
d7f43b7a72 formatting 2019-09-11 15:47:21 -04:00
Spencer Gibb
0cb9af12ed Excludes s-c-lb from test 2019-09-11 12:28:59 -04:00
Spencer Gibb
7c8c9837cd Merge branch '2.1.x' 2019-09-11 12:07:18 -04:00
yuzhang
36ee685991 I think there should not import classes in log4j (#1292)
Fixes #1290
2019-09-11 11:57:42 -04:00
buildmaster
7cab2bf427 Bumping versions to 2.1.4.BUILD-SNAPSHOT after release 2019-09-09 20:15:20 +00:00
buildmaster
20990d80a4 Going back to snapshots 2019-09-09 20:15:19 +00:00
buildmaster
00a70104bc Update SNAPSHOT to 2.1.3.RELEASE 2019-09-09 20:14:20 +00:00
Spencer Gibb
2b8ab94b5a Updates test to match message with pattern.
This avoids changes in byte sizes.
2019-09-09 15:58:31 -04:00
Olga Maciaszek-Sharma
6687594212 Merge branch '2.1.x' 2019-08-27 14:14:18 +02:00
Olga Maciaszek-Sharma
2084b0a4eb Fix javadoc. Fixes gh-1268. 2019-08-27 14:13:44 +02:00
Spencer Gibb
717e799640 Default to route attr for routeId if not defined in config. 2019-08-14 15:33:17 -05:00
buildmaster
dfdb4e0f71 Going back to snapshots 2019-08-14 15:15:15 +00:00
buildmaster
8b3d9aea57 Update SNAPSHOT to 2.2.0.M2 2019-08-14 15:13:58 +00:00
Gsealy Jiao
b0b4c0e375 clean duplicate logger 2019-08-14 15:55:27 +08:00
Ryan Baxter
14c88efd6b Merge pull request #1247 from eacdy/bug-fix-rate-limit
Fix comment in RequestRateLimiterGatewayFilterFactory
2019-08-13 16:18:20 -04:00
Olga Maciaszek-Sharma
1f6043d6bc Fix javadoc. 2019-08-13 12:44:52 +02:00
Olga Maciaszek-Sharma
090cf97bb8 Merge branch '2.1.x' 2019-08-13 12:36:06 +02:00
gminog
b11fd5b2f9 In case the failureType coming from Hystrix is SHOSRTCIRCUIT, then HTTP 503 is dispatched (#1230)
* In case the failureType coming from Hystrix is SHOSRTCIRCUIT, then
ServiceUnavailableException will be thrown. That exception provides HTTP
503 to the original service consumer.
Moreover, HystrixGatewayFilterFactoryTests have been enriched so that
the aforementioned case is tested and verified.

* The hystrixFilterServiceUnavailable test of
HystrixGatewayFilterFactoryTests no longer force-closes the circuit in
order not to impact any subsequent tests (see also the comment:
https://github.com/spring-cloud/spring-cloud-gateway/pull/1230#pullrequestreview-272440126)
2019-08-13 12:35:15 +02:00
eacdy
b7ca04d409 Fix comment in RequestRateLimiterGatewayFilterFactory 2019-08-13 16:44:13 +08:00
buildmaster
43f241dfaa Bumping versions 2019-08-09 18:03:50 +00:00
Spencer Gibb
5560ff9034 Updates to use usefull boot Binder apis.
Adds ConversionService and deprecates ConfigurationUtils.

ConversionService uses Validation bind handler to handle validation rather than running validation logic by hand.
2019-08-06 15:30:28 -04:00
Ryan Baxter
e8ce716605 Merge remote-tracking branch 'origin/2.1.x' 2019-08-05 14:52:34 -04:00
Nikita Konev
6d7c2ae942 #821 read timeout is not retried. Thanks to @Aloren's https://github.com/spring-cloud/spring-cloud-gateway/pull/823 2019-08-04 00:07:00 +03:00
Tim Ysewyn
9cbff7365b Merge branch '2.1.x' 2019-07-30 21:22:22 +02:00