Bertrand Renuart
465582d20c
Make sure MetricsRestTemplateAspectConfiguration is applied in time.
...
`MetricsRestTemplateConfiguration` creates a BeanPostProcessor used to configure RestTemplate instances when added to the application context. It should be made @ConditionalOnClass(RestTemplate) instead of @ConditionalOnBean(RestTemplate) since it should be present *before* any RestTemplate bean instance is created. (#1747 )
fixes gh-1153
8 years ago
Bertrand Renuart
fae60e9fae
Remove unused `registry` private field. ( #1746 )
...
fixes gh-1745
8 years ago
Ryan Baxter
54c052c5eb
Disable Hystrix support when using Feign by default. Fixes #1277 .
8 years ago
Spencer Gibb
309b280d0d
Log warning if local instance fails.
...
If DiscoveryClient.getLocalServiceInstance() throws an exception (ie consul isn't available), log a warning and continue. This is useful for dev type environments.
fixes gh-1603
8 years ago
utsman
cb9d9bd8a1
Remove duplicate null check
8 years ago
Ryan Baxter
df91ff7735
using apache commons logger
8 years ago
Ryan Baxter
06565765b8
removing unused imports
8 years ago
Ryan Baxter
fc9c7dcdfc
clearing context during setup
8 years ago
Ryan Baxter
72f1ce9096
added logging to test
8 years ago
Ryan Baxter
a4f30ebf1d
Make the use of Spring Retry optional when using Feign. Fixes #1708
8 years ago
Tomasz Juchniewicz
ed137a93ce
Fix encoding issue in SpringEncoder for binary data ( #1699 )
...
* Fix encoding issue in SpringEncoder for binary data
Fixes gh-1698
* Fix encoding issue in SpringEncoder for binary data
Fixes gh-1698
* Fix encoding issue in SpringEncoder for binary data
Add unit test.
Fixes gh-1698
8 years ago
Lars
e73ee5f690
Refactors zuul tests for better readability. ( #1686 )
...
* Refactors tests for better readability. Polishes imports. Removes hostname and port from TestRestTemplate-calls. Introduces @LocalServerPort
8 years ago
Ryan Baxter
050d5f898f
Porting changes that remove RetryTemplate from FeignLoadBalancer constructor from 1.2.x branch
8 years ago
Spencer Gibb
e3341a19cd
Add @FeignClient(primary)
...
Adds the ability to turn off Spring Cloud Netflix making the feign instances as primary.
fixes gh-1016
8 years ago
Spencer Gibb
8f5e3ad7c0
polish
8 years ago
Ryan Baxter
981fa5db9a
Merging PR #1689 into master
8 years ago
Ryan Baxter
52ab4d3ecd
Adds a check for an empty URI in updateToHttpsIfNeeded. Fixes #1690 .
8 years ago
Ryan Baxter
731c8bf0fd
Add the ability to provide a default ZuulFallbackProvider. Fixes #1506
8 years ago
Erik Kringen
d78da7b994
Add support for Feign.SetterFactory ( #1673 )
...
Fixes gh-1414
8 years ago
Roman Terentiev
c795bd16a7
#1203 Improve filter performance by using only one instance of AllEncompassingFormHttpMessageConverter ( #1681 )
8 years ago
Spencer Gibb
7237275f5d
polish
8 years ago
Johannes Edmeier
3e7b196950
Close response on errors writing to the outputStream ( #1372 )
...
Currently all errors during writing to the outputStream are ignored. So the
response is read to the end. This is a problem when the response is
infite or very long running (`hystrix.stream` for example) and results in the
socket never being closed and eating up threads (on zuul and the proxied
backend). With this commit the errors during writing are not ignored resulting
in closing the response.
8 years ago
Ryan Baxter
bcb97bce1c
Merging PR #1680 into master
8 years ago
Ryan Baxter
64d8883210
Adding missing commit from #1457
8 years ago
Ryan Baxter
0af99769ad
Adding missing commit from PR #1457
8 years ago
lowzj
c8fded80d5
fix gh-1672, support @RequestParam without a value
8 years ago
Spencer Gibb
ff70c08fb9
More zuul constant and javadoc updates
8 years ago
Spencer Gibb
506a9a44af
Move many zuul strings to FilterConstants.
...
Also adds minimal javadoc to classes.
See gh-1435
8 years ago
Spencer Gibb
10e8634d38
add additional conditional on class in case of webflux
8 years ago
Spencer Gibb
a1577127b7
hopefully fix flaky test
8 years ago
Spencer Gibb
5a1f1d2c64
Remove unused import.
8 years ago
Eloi
c87f6ca983
delegate to the library httpclient parse the content type ( #1664 )
...
Fixes gh-1663
8 years ago
Stefan Bley
53649f6020
Separate adding X-ForwardedProto header
...
Add X-Forwarded-Proto header in Zuul PreDecorationFilter even with X-Forwarded-Host header being absent
8 years ago
Ryan Baxter
ed6c4b1925
Revert "Version changes for 1.3.0.M1"
...
This reverts commit 46ee0ce161
.
8 years ago
Ryan Baxter
46ee0ce161
Version changes for 1.3.0.M1
8 years ago
Eloi
e6f2db70ef
Maintain content type for data parts in multipart requests ( #1614 )
...
maintain multipart content type for data parts
Fixes gh-1581
8 years ago
Spencer Gibb
d76bd84466
Handle content-type with charset.
...
A new version of httpclient introduced by boot changed the behaviour that previously allowed the charset. It now has to be parsed out and passed to the apache `ContentType` object explicitly.
fixes gh-1649
8 years ago
Trevor Mack
ff0ac568f4
addressing issues/1636 ZuulProperties.ZuulRoute consturctor missing explicitly setting of customSensitiveHeaders boolean when provided with sensitiveHeaders
8 years ago
Spencer Gibb
5d0b2fae86
Ignore misbehaving test
8 years ago
Spencer Gibb
f8a8b3cf31
Fix broken test logic, rather than >= should be <=
8 years ago
Jin Zhang
88396411f7
improve efficiency of SendResponseFilter#addResponseHeaders() ( #1622 )
8 years ago
Ryan Baxter
a5bd17c0c0
Remove check that does not apply Formatters to Collection in Feign Client parameters. Fixes #1526
8 years ago
Spencer Gibb
a5e5f81d88
Changes equals assertion to greaterThanOrEquals.
...
Hopefully this fixes flaky tests.
8 years ago
Ondřej Božek
b619ee00bf
Adds composed @RequestMapping annotations support
...
Fixed short circuit condition to correctly detect @RequestMapping shortcuts (@GetMapping , @PostMaping etc.)
Fixes gh-1201
8 years ago
Johannes Edmeier
899d8bc24d
Add CompositeRouteLocator ( #1448 )
...
Configure a CompositeRouteLocator by default so it is easier to compose
multiple RouteLocators.
8 years ago
Spencer Gibb
bf586ba2cb
polish
8 years ago
Hung Tran
6dfc7a815b
Disables httpclient auto decompression of encoded data
...
Applies only to SimpleHostRoutingFilter.
fixes gh-1480
8 years ago
Arnaud Brunet
b27ba0434a
More robust instantiation in SpringClientFactory
...
SpringClientFactory returns null if the class is not aware of IClientConfig.
This change catches the exception when trying the constructor with IClientConfig so classes that aren't aware of IClientConfig can be created.
Fixes gh-1608
8 years ago
Ryan Baxter
8029deb1e4
Merging PR #1457 into master.
8 years ago
Spencer Gibb
8a9c5fe4a1
Update fixes for hystrix stream test
8 years ago