Commit Graph

406 Commits

Author SHA1 Message Date
Ryan Baxter
2879296c8b Merge pull request #611 from mmanciop/embedded-redis
Use EmbeddedRedis to make build self-contained
2018-10-24 19:33:47 -04:00
Vitaliy Pavlyuk
7d3689fa9e Merge remote-tracking branch 'upstream/2.0.x' into rewrite_response_header_filter 2018-10-23 15:46:59 -04:00
buildmaster
d442440e7b Bumping versions to 2.0.3.BUILD-SNAPSHOT after release 2018-10-23 18:21:14 +00:00
buildmaster
f49655946d Going back to snapshots 2018-10-23 18:21:14 +00:00
buildmaster
6071a22ae0 Update SNAPSHOT to 2.0.2.RELEASE 2018-10-23 18:16:06 +00:00
Michele Mancioppi
d822302870 Use EmbeddedRedis to make build self-contained 2018-10-20 10:25:02 +02:00
Michele Mancioppi
0276702770 Treat corner cases of Hystrix exception handling
* Treat HttpClient timeouts the same as Hystrix timeouts
* Propagate ResponseStatusException and throwables with
  @ResponseStatus when cause for COMMAND_EXECUTION failure

Fix #554
2018-10-20 09:56:41 +02:00
Spencer Gibb
b42c45fb89 Lazily inject DispatcherHandler.
This prevents early initialization.
2018-10-19 20:54:05 -04:00
Ryan Baxter
d5ed80776c Merge pull request #495 from ryanjbaxter/refactor-readbodypredicate-2.0.x
Refactor ReadBodyPredicateFactory
2018-10-17 15:40:08 -04:00
Ryan Baxter
bdd970d562 Read the body twice by retaining it and using slice to give each read its own read/write indexes 2018-10-17 11:17:46 -04:00
Guido Lena Cota
eb13e0d683 Remove unused import, private methods, and private fields 2018-10-15 23:10:20 +02:00
Guido Lena Cota
cdef68af31 Use indexOf a char 2018-10-15 23:09:35 +02:00
Guido Lena Cota
317edea8c2 Minor refactors to improve readability 2018-10-15 23:06:48 +02:00
Guido Lena Cota
bdb0913dd8 Replace lambda with method reference 2018-10-15 23:05:26 +02:00
Ryan Baxter
b64ed639b4 Merge pull request #586 from spring-cloud/ignore-route-path
Only use scheme://host:port from routeUri
2018-10-15 09:12:18 -04:00
Vitaliy Pavlyuk
05831014b7 Rewrite response header filter. 2018-10-11 12:24:45 -04:00
Vitaliy Pavlyuk
eb9b6177fe Merge remote-tracking branch 'origin/2.0.x' into rewrite_response_header_filter_factory 2018-10-11 10:58:34 -04:00
Tony Clarke
6a2f9d14b5 Add support for configuring TLS handshake timeouts 2018-10-06 11:26:28 -04:00
Spencer Gibb
e6a2cd3cdb Merge branch '2.0.x' of https://github.com/tpenakov/spring-cloud-gateway into tpenakov-2.0.x 2018-10-05 19:08:12 -04:00
Spencer Gibb
bb1ea6a123 Only use scheme://host:port from routeUri
fixes gh-465
2018-10-05 18:34:25 -04:00
mmanciop
b473aaee1c Support Spring WebFlux error-handling mechanism for Hystrix-issued timeouts (#557)
Fixes gh-553
2018-10-05 18:33:08 -04:00
Tony Clarke
f1db5e063c Certificate array in pem (#583)
Fix a bug where previous trust manager effectively only read the first certificate in pem file.
2018-10-05 18:30:21 -04:00
Vitaliy Pavlyuk
0582e886ae limited unit tests 2018-10-04 21:00:52 -04:00
Vitaliy Pavlyuk
6b52f76ac2 Rewrite response header filter factory. 2018-10-04 20:49:16 -04:00
Ryan Baxter
198b3790cb Merge remote-tracking branch 'Upstream/2.0.x' into refactor-readbodypredicate-2.0.x 2018-10-03 10:39:26 -04:00
Ryan Baxter
b27ea537ba Adding additional-spring-configuration-metadata with additional properties. Fixes #522 2018-10-02 14:19:17 -04:00
Spencer Gibb
58834daf62 temporarily disables HiddenHttpMethodFilter 2018-09-19 15:40:01 -04:00
Ryan Baxter
afe639d844 Add support for optionally matching trailing / in path predicate. Fixes #511 2018-09-12 14:24:03 -04:00
dave-fl
e5993efced Minor performance tweaks (showed as hotspots when testing). 2018-09-11 17:14:08 -04:00
violetagg
466057cd62 Use ReadTimeoutHandler for setting the response timeout (#540)
Fixes gh-524
2018-09-11 13:29:28 -04:00
Triphon Penakov
5aa126a83a Handle case to work with non standard content like "Content-Type: image" 2018-08-30 09:30:47 +03:00
Spencer Gibb
cba999a8b6 Adds response timeout test
fixes gh-518
2018-08-24 16:41:58 -04:00
Spencer Gibb
6e54ed23af Moves Evaluation Context as field and changes if predicate is true to not use spel. 2018-08-24 16:41:23 -04:00
Tony Clarke
5cf466cd2a responseMono timeout is a noop since the return Mono is ignored (#515) 2018-08-24 16:12:08 -04:00
Ryan Baxter
23d075852b Adding Characteristics to the Collector 2018-08-17 20:27:22 -04:00
Ryan Baxter
31ac60d197 Use a Collector to collect the request body into a map containing two copies. 2018-08-17 20:14:19 -04:00
Ryan Baxter
a0508bbe1e ReadBodyPredicate should set body to body of the original request, not the parsed object. 2018-08-15 20:04:36 -04:00
Kerwin Bryant
cf28327eeb Allows LoadBalancerClientFilter to be extended (#448)
Makes `LoadBalancerClient` protected and creates protected `choose(ServerWebExchange)` method.
2018-08-15 14:06:56 -04:00
Ryan Dawson
bc1e549dc8 add x-forwarded-prefix header (#382)
If the path of the url that the gw is routing to is a subset of the url that it is routing from then the difference is the prefix. Also applies if the path of the url being routed to is empty and the routed-from url path is non-empty. 

Included quite a few null checks as it should allow for the various different route definition styles and types of request. I've been [using this](https://github.com/ryandawsonuk/activiti-cloud-gateway/tree/develop/src/main/java/org/springframework/cloud/gateway/filter/headers) in k8s by overriding the class and found the null checks to be necessary.

Was thinking it could be disabled by default as that's how it is for [nginx ingress](https://github.com/kubernetes/ingress-nginx/pull/1805) but I haven't thought of any specific reason not to enable by default.

fixes gh-314
2018-08-14 13:03:58 -04:00
Spencer Gibb
eea9510716 Adds option for setting custom content type for modify request body.
fixes gh-492
2018-08-14 12:58:01 -04:00
Spencer Gibb
2bbf748fcd Calls to filter(collection) will now transform non-Ordered filters to Ordered filters.
fixes gh-445
2018-08-07 13:20:16 -04:00
Spencer Gibb
9aac4cb9c8 Rejects requests made on the management server port.
fixes gh-477
2018-08-07 12:33:56 -04:00
Spencer Gibb
2c49d49f36 Renames to Tests 2018-08-07 12:23:08 -04:00
Spencer Gibb
b08f8917d2 removes unused imports 2018-08-03 17:53:59 -04:00
Spencer Gibb
8cc6c3b840 Supports relative uri in RedirectTo filter
fixes gh-468
2018-08-03 17:38:21 -04:00
buildmaster
fb05818c85 Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2018-07-31 19:12:24 +00:00
buildmaster
5e6f06b720 Going back to snapshots 2018-07-31 19:12:24 +00:00
buildmaster
fe773fa4df Update SNAPSHOT to 2.0.1.RELEASE 2018-07-31 19:09:58 +00:00
Ryan Baxter
6c7168df89 Merge pull request #439 from ryanjbaxter/readbody-cachebody
Caches body object in ReadBodyPredicate
2018-07-30 15:10:11 -04:00
Ryan Baxter
94832d9817 Adding comment clarifying why we are caching the request body 2018-07-30 14:28:23 -04:00