Commit Graph

1013 Commits

Author SHA1 Message Date
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
2084b0a4eb Fix javadoc. Fixes gh-1268. 2019-08-27 14:13:44 +02:00
Ryan Baxter
0046d60ce5 Merge pull request #1251 from Gsealy/2.1.x
clean duplicate logger in ServerWebExchangeUtils class
2019-08-14 10:40:39 -04:00
Gsealy Jiao
b0b4c0e375 clean duplicate logger 2019-08-14 15:55:27 +08: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
Ryan Baxter
f17cf9e1ad Merge pull request #1223 from nkonev/feature/retry-read-timeout
#821 read timeout is not retried noconflict
2019-08-05 14:51:23 -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
07c21a9e60 Support multiple rate-limiter configs
Take the correct rate-limiter filter configuration into account in case there is a default and route-specific one.
2019-07-30 21:21:39 +02:00
Marcin Grzejszczak
6e008e87c4 Added symbolic link of index.adoc 2019-07-29 14:43:55 +02:00
Spencer Gibb
afa858af6e formatting 2019-07-25 15:27:35 -04:00
Tony Clarke
83515df63b Adds conifugration to allow http options globally.
This is done by adding a global cors config to simlple URL Handler mapping. Spring webflux adds a static resource handler, WebFluxAutoConfiguration.WebFluxConfig. This adds a SimpleURLHandler which will be the handler that ends returning http 404 for requets that match any spring cloud gateway predicates.

fixes gh-840
2019-07-25 15:24:53 -04:00
Spencer Gibb
8613615fbd Merge branch 'Aloren-feature/backoff' into 2.1.x 2019-07-25 13:16:07 -04:00
Anastasiia Smirnova
7d78365648 Adds exponential backoff config options to retry filter. 2019-07-25 13:15:36 -04:00
Spencer Gibb
fd32ab2e88 Merge branch 'body-not-required' into 2.1.x 2019-07-25 12:33:07 -04:00
如梦技术
1879074d6d update gateway mvc post, put, and patch request body not required. 2019-07-25 12:31:41 -04:00
Spencer Gibb
f7b9bb76c8 formatting 2019-07-24 17:25:38 -04:00
Spencer Gibb
684660f053 Merge branch 'tony-clarke-amdocs-map-request-headers' into 2.1.x 2019-07-24 17:24:22 -04:00
Tony Clarke
6eb6634b32 Suppprt remapping headers in request 2019-07-24 17:23:51 -04:00
Ryan Baxter
91648304fc Merge pull request #1116 from dlsrb6342/gh-1110
Add GatewayTagsProvider interface
2019-07-24 16:02:55 -04:00
Vitaliy Pavlyuk
33ad555831 Rewrite Location response header filter 2019-07-24 14:28:38 -04:00
Spencer Gibb
45fb1d4b38 Converts RequestSize filter to use DataSize 2019-07-24 13:26:17 -04:00
Spencer Gibb
c8614b39e1 Updates RequestHeaderSize to add toString() 2019-07-24 13:11:51 -04:00
Spencer Gibb
809b640b82 formatting and checkstyle 2019-07-24 13:00:13 -04:00
sadeshpande
cf69f934d5 Request Header Size Filter 2019-07-24 12:57:03 -04:00
Spencer Gibb
807509abfe Runs test with verbose mode 2019-07-23 15:54:12 -04:00
Dennis Menge
61f2a96c19 Adds test case for route specific actuator endpoint 2019-07-23 15:48:33 -04:00
Spencer Gibb
9fc302ec72 Adds support for netty wiretap on server and client.
fixes gh-1194
2019-07-23 13:31:41 -04:00
Spencer Gibb
f1dbcdc0fe Adds ability to expand uri variables for other filters. (#711)
Currently only SetPath can use the uri variables from the path and host
predicates. Now, other filters can use them thru the
ServerWebExchangeUtils.expand() method.

fixes gh-704
2019-07-23 12:48:25 -04:00
Spencer Gibb
1cf449c870 Adds toString() to filter factories and predicate factories. (#785)
This allows for easier debugging and visibility into configuration.

Predicates needed custom implementations of and() or() and not() so
that toString() could function.

Actuator endpoint was updated to use the new toString(). To enable
set `spring.cloud.gateway.actuator.verbose.enabled=true`.

fixes gh-784
2019-07-23 11:31:00 -04:00
Tim Ysewyn
19494b2c7d Don't mark the request as routed when we need to forward (#1184)
Fixes gh-1125
2019-07-22 13:55:33 -04:00
Spencer Gibb
dc4ed76b57 Set routeId on configurations from route definitions.
fixes gh-1160
2019-07-10 17:06:34 -05:00
Spencer Gibb
d17630f4f2 Verify body is still sent during post retry 2019-07-03 15:23:03 -04:00
Spencer Gibb
7471a41fde Renames httpClient bean to gatewayHttpClient.
fixes gh-1134
2019-07-03 13:41:55 -04:00
Spencer Gibb
c14a749e84 Fixes scm url 2019-06-24 13:30:19 -04:00
Ryan Baxter
9eea694f9f Get ASCII string in netty routing filter. Fixes #1132. 2019-06-24 11:27:02 -04:00
Spencer Gibb
b14de727eb Bumping versions to 2.1.3.BUILD-SNAPSHOT after release 2019-06-21 12:42:10 -04:00
buildmaster
89420c3318 Update SNAPSHOT to 2.1.2.RELEASE 2019-06-21 12:38:18 -04:00
dlsrb6342
4df198cd37 Change TagProvider bean return type 2019-06-21 10:31:15 +09:00
dlsrb6342
6646e4a93d Divide httpTags and routeTags provider 2019-06-20 23:06:00 +09:00
Spencer Gibb
ec0d906ff3 Adds ServerWebExchangeUtils methods for caching the request body.
Adapts the methods from AlwaysRetainBodyGlobalFilter to a generic
way to cache the request body. That filter was removed and
AdaptCachedBodyGlobalFilter and ReadBodyPredicateFactory were updated
to use the new methods.

fixes gh-946
2019-06-19 14:40:06 -04:00
Spencer Gibb
c46543b356 Only add headers if response is not committed. 2019-06-19 13:32:37 -04:00
dlsrb6342
dcc425a109 Provide default tags always 2019-06-16 14:49:48 +09:00
dlsrb6342
350f7c0f4a Support metrics tags with composition of provider 2019-06-15 23:50:49 +09:00
dlsrb6342
0313117900 Fixes gh-1110 Add GatewayTagsProvider interface 2019-06-15 00:36:49 +09:00
Spencer Gibb
e632221d28 Increases test timeout 2019-06-13 16:00:30 -04:00
Spencer Gibb
bda561c34d Formatting 2019-06-13 15:13:23 -04:00
Spencer Gibb
3b67c1e576 Move array from stream and use a for loop.
See #1073
2019-06-13 15:13:23 -04:00
Spencer Gibb
76d138fb40 Adds ability to cache body without converting to bytes (#1095)
Creates new Cache filter that is activated with retry filter is used.

Other filters can opt into caching if needed.

Uses netty factory and retainedSlice() for retry.

Only cache if retry filter is enabled

Fixes gh-982
Fixes gh-1064
2019-06-13 15:08:51 -04:00
Ryan Baxter
0c9732bdc6 Merge pull request #1113 from dlsrb6342/2.1.x
Fix wrong defaultValue in metadata
2019-06-13 07:29:46 -04:00