Commit Graph

572 Commits

Author SHA1 Message Date
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
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
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
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
Anastasiia Smirnova
7d78365648 Adds exponential backoff config options to retry filter. 2019-07-25 13:15:36 -04:00
Spencer Gibb
f7b9bb76c8 formatting 2019-07-24 17:25:38 -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
Ryan Baxter
9eea694f9f Get ASCII string in netty routing filter. Fixes #1132. 2019-06-24 11:27:02 -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
Ingyu Hwang
5af2bb5529 Fixes spring-cloudgh-1108 Fix wrong defaultValue in metadata 2019-06-13 20:15:26 +09:00
Ryan Baxter
968953cfe2 Merge remote-tracking branch 'origin/2.0.x' into 2.1.x 2019-06-04 19:59:55 -04:00
Ryan Baxter
56eda5080d Merge pull request #1042 from thirunar/2.1.x
Fixes gh-878 - secure headers can be disabled #1041
2019-06-04 19:41:15 -04:00
re6exp
a64a6e3bf5 PR 1014 - moved from master to 2.0.x 2019-06-04 11:27:36 +03:00
Thirunavukkarasu Ravichandran
dbcd9bac5d renaming the method 2019-06-04 06:59:38 +02:00
Thirunavukkarasu Ravichandran
ee6f7d01c4 Fixes gh-878 - secure headers can be disabled 2019-06-04 06:58:50 +02:00
Olga Maciaszek-Sharma
1d86bb51f6 Formatting fixes with updated spring java-format plugin. 2019-05-16 18:46:54 +02:00
Olga Maciaszek-Sharma
73bf24a27d Do not pass forward URI scheme along. 2019-05-16 18:45:40 +02:00
Olga Maciaszek-Sharma
917f565a54 Do not pass forward URI scheme along. (#1061) 2019-05-16 17:43:39 +02:00
Spencer Gibb
6b13f8c1b3 WebClient cleanup response 2019-04-12 13:13:52 -04:00
Spencer Gibb
659313816b polish 2019-04-12 12:57:54 -04:00