Commit Graph

2335 Commits

Author SHA1 Message Date
buildmaster
ba814ce930 Bumping versions to 4.0.6-SNAPSHOT after release 2023-05-02 17:54:53 +00:00
buildmaster
07e9ca7867 Going back to snapshots 2023-05-02 17:54:52 +00:00
buildmaster
5399116612 Update SNAPSHOT to 4.0.5 2023-05-02 17:51:21 +00:00
spencergibb
ada2cae551 Merge branch '3.1.x' 2023-04-26 19:41:31 -04:00
spencergibb
1c121efc6e Support response-timeout property as a String
Fixes gh-2581
2023-04-26 19:40:12 -04:00
spencergibb
e940ce9783 Update for apache httpclient 5
See gh-2914 for impl by @Albertoimpl
2023-04-26 14:15:47 -04:00
spencergibb
b35e8cc3ed Formatting 2023-04-26 14:15:04 -04:00
Marta Medio
8120303121 Adding grpc-status header value (adapted for 3.1.x) (#2938) 2023-04-26 14:11:42 -04:00
Marta Medio
064684a31b Adding grpc-status header value (adapted for 3.1.x) (#2938) 2023-04-26 14:07:35 -04:00
Ignacio Lozano
c74d65aa14 Add metadata requestParam to /refresh specific routes (#2916)
* Add metadata requestParam to /refresh specific routes

* Added requestParam that will be included in the event as a map of key:value pairs
* ScopedRefreshRoutesEvent: RefreshRoutesEvent was extended hierarchically to add metadata for filtering
* Modify CachingRouteLocator to filter in case the incoming event is ScopedRefreshRoutesEvent

* Change refresh by group for covering deletion

When all the routes in a group were deleted, the refresh were not done

---------

Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
2023-04-26 13:41:34 -04:00
Ignacio Lozano
23ca3721a6 Add a new endpoint POST /routes (#2915)
* Add a new endpoint POST /routes

A list of RouteDefinition can be sent to /routes using POST method to persist multiple routes by a single request.

Validation is done before persisting any RouteDefinition
2023-04-26 13:32:25 -04:00
buildmaster
964cb81932 Bumping versions 2023-04-25 02:11:46 +00:00
Ignacio Lozano
f1ea09ae3e Fix bug when combining LocalResponseCache (#2930)
Using

```yml
- StripPrefix=0
- LocalResponseCache=3m,1MB
- RemoveJsonAttributesResponseBody=args,data,files,Sec-Fetch-Dest,true
      uri: https://httpbin.org
```

the Flux<DataBuffer> was replaced by other type, provoking a ClassCastException
2023-04-24 13:16:02 -04:00
spencergibb
c7014f8431 Merge branch '3.1.x' 2023-04-20 16:24:59 -04:00
jiangyuan04
3d44588745 fix grpc MethodDescriptor fullMethodName problem
Fixes gh-2910
2023-04-20 16:12:26 -04:00
buildmaster
84fd7cb739 Bumping versions 2023-04-06 02:10:59 +00:00
buildmaster
59839df5fd Bumping versions 2023-04-05 21:06:18 +00:00
Ryan Baxter
7dda1cb62c Merge branch '3.1.x' 2023-04-05 11:17:48 -04:00
Ryan Baxter
2bb47feb47 Merge pull request #2918 from ryanjbaxter/use-new-path-attribute-in-cb-filter
Remove gateway predicate path attribute in CB filter.
2023-04-05 11:09:57 -04:00
Ryan Baxter
91b465a6b0 Remove gateway predicate path attribute in CB filter. 2023-04-05 10:28:41 -04:00
buildmaster
5e9d2ce0c5 Bumping versions to 4.0.5-SNAPSHOT after release 2023-03-28 16:01:04 +00:00
buildmaster
96092f8611 Going back to snapshots 2023-03-28 16:01:04 +00:00
buildmaster
fdc63b1e98 Update SNAPSHOT to 4.0.4 2023-03-28 15:57:59 +00:00
buildmaster
66cb7ed297 Bumping versions 2023-03-28 02:11:51 +00:00
spencergibb
9bedec09f8 Merge branch '3.1.x' 2023-03-27 21:01:37 -04:00
spencergibb
4968a04710 Updated to String.format() 2023-03-27 21:00:58 -04:00
spencergibb
6e06b9661e Formatting 2023-03-27 21:00:33 -04:00
Ignacio Lozano
a4182c04c8 Test invalid URI raises early error before /refresh
When an invalid URI is configured in a routeDefinition, the endpoint for saving a route returns 201 Created response. However, the invalid route finally fails after calling `/refresh` endpoint.

If the developer configures more than one route, and the refresh fail because one route, all the routes are not persisted, leaving an inconsistent state

Fixes gh-2881
2023-03-27 20:57:20 -04:00
Marta Medio
bc57f129e4 Allow to deactivate global cache (#2895)
* Allow to deactivate global cache

* Update cache tests

* Update cache docs

* Rollback rename of global cache filter
2023-03-27 12:14:17 -04:00
Ignacio Lozano
162863020d Remove duplicated DataBuffer that caused leak alert by LocalResponseCache (#2886)
Having `response.bufferFactory().wrap(byteBuffer)` left the original DataBuffer without calling internally the `release()` method, which also decrease the counter of the incoming references to the object by Netty memory leak control.

This copy is not necessary and it was making Netty losing the object, causing memory Leak alert

[connected #2879]
2023-03-27 12:04:16 -04:00
Olga Maciaszek-Sharma
8abdf4be00 Refactor test. 2023-03-23 16:04:17 +01:00
Olga Maciaszek-Sharma
1d6690cdbb Add hints for Configurable objects supertypes and their generics. (#2890) 2023-03-16 13:01:43 +01:00
spencergibb
b42ba9128f Merge branch '3.1.x' 2023-03-15 16:23:55 -04:00
spencergibb
5d8c2cf898 Polish "Add ServerWebExchange a new attribute for PathContainer to avoid repeating parsePath in PathRoutePredicateFactory."
See gh-2884
2023-03-15 16:22:03 -04:00
liruihao
18e116c1c6 Adds attribute for PathContainer to avoid repeating parsePath in PathRoutePredicateFactory
Fixes gh-2884
2023-03-15 16:21:49 -04:00
spencergibb
b72972a4ca Merge branch '3.1.x' 2023-03-15 15:52:05 -04:00
spencergibb
9575a3496e formatting 2023-03-15 15:51:41 -04:00
koo.taejin
b31af9eef0 Remove unnecessary exception creation when Creating a CachedBodyOutputMessage.
Fixes gh-2888
2023-03-15 15:51:00 -04:00
spencergibb
4c4c6f33b0 Removes explicit setting of kotlin maven plugin version.
Fixes gh-2892
2023-03-14 16:28:59 -04:00
spencergibb
044a58b264 Removes reference to boot 2.x.
The main version of gateway is now based on boot 3.x, but saying boot is sufficient.
2023-03-14 15:02:46 -04:00
spencergibb
cb18b2a5c2 Merge branch '3.1.x' 2023-03-14 14:36:04 -04:00
ecnabogs
720c8d63d8 Invalid sections numbering
The sections "Fluent Java Routes API" and "The `DiscoveryClient` Route Definition Locator" are hierarchically defined under "Http timeouts configuration" but they are unrelated topics. These sections should be raised one level up and thus should appear as standalone sections with proper numbering.

Fixes gh-2891
2023-03-14 14:34:57 -04:00
spencergibb
d01a17c3df Merge remote-tracking branch 'origin/main' 2023-03-03 16:56:22 -05:00
spencergibb
75e5049c83 formatting 2023-03-03 16:55:35 -05:00
spencergibb
d67a7cd671 Merge branch '3.1.x' 2023-03-03 16:50:48 -05:00
spencergibb
ca66cb2400 formattingˆ 2023-03-03 16:47:55 -05:00
daihuabin
06574d689a Adapt ProxyWebSocketHandler CloseStatus
Fixes gh-2451
Fixes gh-2702
2023-03-03 16:46:09 -05:00
spencergibb
e7610612db Tokenize x-forwarded-for regardless of whitespace.
Fixes gh-2479
2023-03-03 16:14:54 -05:00
spencergibb
218cbe5f50 Updates maven to 3.9.0 2023-03-03 16:00:07 -05:00
Marcin Grzejszczak
429991d2ad Fixed a classcast for gateway observation; fixes gh-2877 2023-03-01 16:41:23 +01:00