Commit Graph

454 Commits

Author SHA1 Message Date
Spencer Gibb
63896485b0 Fix broken zuul tests. 2016-02-01 15:01:28 -07:00
Spencer Gibb
01fc27cb49 Temporarily ignore failing test so snapshots can build. 2016-02-01 12:51:35 -07:00
Dave Syer
32c0f90999 Remove regex mapper properties from ZuulProperties
It is up to the user to configure a mapper if needed (one is no
longer provided automatically), so it doesn't need to take up
space in ZuulProperties
2016-01-31 16:19:51 +00:00
Dave Syer
82d8a11021 Defensive coding to avoid potential NPE
Fixes gh-803
2016-01-31 16:19:16 +00:00
Dave Syer
cb13b9dd77 Reset Zuul state some more
Tests are very sensitive to the Zuul RequestContext which is
thread bound.
2016-01-28 17:48:42 +00:00
Dave Syer
29e691a4da Fix some zuul tests (clear request context before test) 2016-01-27 13:53:22 +00:00
Dave Syer
22b08f1a7f Fix Feign Ribbon with Apache HTTP client
The Apcahe client does not allow empty body for PATCH, nor does it
allow a request to be pre-populated with a Content-Length. Spring
Cloud tests were trying to do the former, and Feign allows the latter.
2016-01-27 13:38:48 +00:00
Dave Syer
65ec773066 Fix FeignHttpClientTests 2016-01-27 13:06:02 +00:00
Adrian Ivan
2f905b81ed Detect Zuul vs DispatcherServlet execution
Change SimpleRouteLocator to work with both Zuul and DispatcherServlet

Fixes gh-794
2016-01-27 10:51:56 +00:00
Dave Syer
1534ca41f7 Add dependency management for netty
Fixes gh-710
2016-01-26 16:02:26 +00:00
Dave Syer
82991a7fc2 Make feign client bean id unique (use full classname)
Fixes gh-790
2016-01-26 10:49:21 +00:00
Spencer Gibb
3fb26f69e5 Add ability to disable hystrix metrics
fixes gh-781
2016-01-20 13:06:13 -07:00
Dave Syer
c97f69517d Fix format in javadoc 2016-01-18 17:03:05 +00:00
Dave Syer
053296de93 Ensure request body is not buffered when direct to ZuulServlet
A change in Zuul in NetflixOSS means that it buffers all requests unless
you switch it off at the level of the servlet. And even when you do that
you need to ensure that Spring Cloud doesn't re-introduce a buffer through
the Servlet30RequestWrapper.

This change restores the feature in Spring Cloud Angel that multipart files
posted to /zuul/* go straight through the servlet and are not buffered in
memory.

Fixes gh-773
2016-01-18 16:51:35 +00:00
Spencer Gibb
62d340bcfe Support @AliasFor annotation elements in Feign.
fixes gh-766
2016-01-15 17:30:08 -07:00
Dave Syer
9287e66cfc Add ServerProperties in case not a web app (for tests) 2016-01-15 15:34:42 +00:00
Dave Syer
98e1ac7375 Add fullPath as convenience property on Route
More often than not what Route.path was used it had to be concatenated
with the prefix. This change just encapsulates that concern in the
Route itself.
2016-01-15 15:34:42 +00:00
Dave Syer
f9fc8ba8aa Change signature of RouteLocator.getRoutes()
If it returns Routes instead of Strings it's a lot more obvious
what it's supposed.
2016-01-15 15:34:42 +00:00
Dave Syer
2585798ab5 Consolidate RouteLocator features in base class 2016-01-15 15:34:42 +00:00
Spencer Gibb
f00f761996 Support feign hystrix fallbacks.
Added @FeignClient(fallback).

Renamed FeignClientFactory to FeignContext.

fixes gh-762
2016-01-14 16:19:59 -07:00
Dave Syer
3ecd9cb0cf Move discovery related route locator stuff into a new package 2016-01-14 17:15:30 +00:00
Dave Syer
9161c54c43 Factor out common interface from ProxyRouteLocator
The RouteLocator interface wasn't very useful to anyone in its
1.0.x form. If ProxyRouteLocator features are consolidated into
the RouteLocator interface then users can supply their own
strategies more easily.

Also added RefreshableRouteLocator for implementations that need
to recompute routes when something changes. SimpleRouteLocator
doesn't need to do that because all the routes are in the configuration.
2016-01-14 17:15:30 +00:00
Spencer Gibb
b894f8dbb3 Upgrade archaius to v 0.7.3
Added spring-cloud-starter-archaius so downstream projects
like consul and zookeeper don't need to maintain the list of
archaius depenencies.

fixes gh-765
2016-01-12 11:19:16 -07:00
Spencer Gibb
af88007cc3 Merge pull request #745 from jkschneider/metrics-deconflict-services
Servo and Spectator metrics defer to other Counter/GaugeServices
2016-01-12 10:42:47 -07:00
Spencer Gibb
c1e567afc7 Move eureka-client code to separate module.
This move should be transparant to users of spring-cloud-starter-eureka.

fixes gh-579
2016-01-11 16:45:30 -07:00
Dave Syer
0e8ce13c07 Copy javadocs from interfaces to config property fields 2015-12-30 17:55:05 +00:00
Dave Syer
e4a1b50edb Change name of mispelled class 2015-12-30 17:54:03 +00:00
Dave Syer
832bd41f5d Add some docs for config properties 2015-12-30 15:06:30 +00:00
Jon Schneider
af5c2360ea Servo and Spectator metrics defer to other Counter/GaugeService implementations 2015-12-28 14:31:10 -06:00
Spencer Gibb
d809ac9999 fix eureka-first test 2015-12-23 17:34:30 -07:00
Spencer Gibb
94c73da943 Use new InetUtils bean to determin nic.
Allows for more fine-grained configuration of what to ignore.
2015-12-22 18:10:56 -07:00
Spencer Gibb
03f6d12e50 Implement ServiceInstance.getMetadata.
Introduce ServerIntrospector.getMetadata(Server).

fixes gh-419
2015-12-22 15:04:57 -07:00
Spencer Gibb
8938aa4621 Revert "Update SNAPSHOT to MILESTONE 1.1.0.M4"
This reverts commit 721fdc5918.
2015-12-22 11:25:47 -07:00
Spencer Gibb
721fdc5918 Update SNAPSHOT to MILESTONE 1.1.0.M4 2015-12-22 11:21:20 -07:00
Rafael Zanella
7c7513ee25 Added check for invalid hostname
The exception class has to be "fixed"

You may register a serviceId with invalid URI characters (e.g.: '_'), but the URI::getHost() fails when such chars are found.
2015-12-18 13:11:22 -07:00
hscholz
66c047e6d5 fixes gh-716 adds option to decode 404s 2015-12-18 12:12:29 -07:00
Jettro Coenradie
f707e5f053 Case insensitive Content-Encoding check
Fixes a problem with a header in the response containing
content-encoding in lowercase letters. Uses HttpHeaders for case
insensitve check.

Also fixes an issue checking if a request is made for gzip content.
If headers has more than gzip (ie gzip,deflate,sdch), checks if
contains gzip instead of equals to.

Fixes gh-662
2015-12-18 11:21:18 -07:00
Jon Schneider
33d651847d Deconflict GaugeService provided by Servo/Spectator integration 2015-12-18 09:07:41 -08:00
Dave Syer
2f0d425b66 Allow URL to be host only (per javadocs) 2015-12-18 11:33:34 +00:00
Spencer Gibb
bad20d3fcc Migrate SpringClientFactory and FeignClientFactory
Now uses spring-cloud-context NamedContextFactory.

see https://github.com/spring-cloud/spring-cloud-commons/issues/69
2015-12-17 14:33:11 -07:00
Dave Syer
493caec5df Fix ribbon client factory to search context hierarchy
We need to use BeanFactoryUtils to search the context hierarchy
for custom instances.

Fixes gh-733
2015-12-17 17:07:14 +00:00
Spencer Gibb
7d78a3c347 Merge pull request #724 from jkschneider/metric-poller
Add Servo metric poller and @EnableAtlas test
2015-12-16 12:21:54 -07:00
Spencer Gibb
502f955091 Merge pull request #722 from jkschneider/atlas-metric-observer
Minor improvements to error messages for netflix.atlas.uri problems
2015-12-16 12:19:38 -07:00
Stéphane Leroy
4a52a7f889 Add Zuul Proxy regex serviceId to route mapping
fixes gh-693
2015-12-16 12:10:22 -07:00
Jon Schneider
1cd363f33f Add Servo metric poller and @EnableAtlas test 2015-12-15 23:20:07 -08:00
Jon Schneider
e994971bec Minor improvements to error messages for netflix.atlas.uri problems 2015-12-15 21:29:20 -08:00
Sébastien Nussbaumer
15f940054d Enable configuration of the way HttpClient handles redirects
RibbonLoadBalancingHttpClient being IClientConfigAware, it is now
initialized within initWithNiwsConfig. The values of the config keys
FollowRedirects, ConnectTimeout and ReadTimeout are now respected.

Fixes gh-691
2015-12-15 15:43:21 -07:00
kakawait
982288ec04 Removing multiple successive slashes
Eliminates zuul URISyntaxException if route has trailing slash.

fixes gh-583
2015-12-15 14:37:52 -07:00
Spencer Gibb
804abb6d6d Move test to same package as class testing 2015-12-15 14:00:21 -07:00
hscholz
abd32fbfd0 Explicitly set target to feign client name.
fixes gh-703
2015-12-14 15:15:27 -07:00