- 17 Dec, 2015 3 commits
-
-
Spring Buildmaster authored
-
Stephane Nicoll authored
Closes gh-4440
-
Andy Wilkinson authored
This reverts commit acb3fb53. See gh-4789
-
- 16 Dec, 2015 3 commits
-
-
Andy Wilkinson authored
Closes gh-4719
-
Phillip Webb authored
Update the documentation to include a section about ServletContext initialization with embedded servlet containers. This update is to primarily highlight that `WebApplicationInitializers` and Servlet 3.0+ `ServletContainerInitializers` are not called. Fixes gh-4643
-
Andy Wilkinson authored
Closes gh-4789
-
- 14 Dec, 2015 2 commits
-
-
Phillip Webb authored
Prevent potential SpEL injection attacks by ensuring that whitelabel error view SpEL placeholders are not recursively resolved. Fixes gh-4763
-
Andy Wilkinson authored
Previously, ActiveMQ's pooled connection factory was not closed as part of the application context being closed. This would leave non-daemon threads running which could cause shutdown to hang unless the JVM itself was shutting down (in which case a shutdown hook would stop the pool). This commit configures each pooled connection factory bean with a custom destroy method so that the pool is stopped as part of the application context being closed. To allow the destroy method to only be declared when the connection factory is pooled, the bean method has been split into two; one for pooled and one for non-pooled. This is a partial backport of the changes made in bedf2edf. Closes gh-4748
-
- 11 Dec, 2015 1 commit
-
-
Andy Wilkinson authored
Closes gh-4754
-
- 10 Dec, 2015 5 commits
-
-
Phillip Webb authored
-
Stephane Nicoll authored
Commit 8c140092 removed the endpoints.metrics.filter.enabled property so that endpoints.metrics.enabled is used for both disabling the endpoint and the servlet filter that records interactions. This was an unfortunate decision as it was no longer possible to only disable the servlet filter. The endpoints.metrics.filter.enabled property has therefore been restored. Closes gh-4365
-
Andy Wilkinson authored
Previously, BasicErrorController would return the response status set in the javax.servlet.error.status_code request attribute when serving JSON but would also return a 200 OK response when serving HTML. This didn’t cause much trouble when a person was browsing, but proved problematic for machine clients that request text/html and care about the response status. For example, the success handler would be driven for an XHR request even though the response was really an error. This commit updates BasicErrorController to set the response status for text/html responses to match the status that it would use in an application/json response. Closes gh-4694
-
Andy Wilkinson authored
Closes gh-4510
-
Andy Wilkinson authored
This reverts commit bb9e1be7. 4.1.7.RELEASE is incompatible with Spring IO Platform 1.1.x due to a new dependency on kryo-shaded. kryo-shaded was introduced in Kryo 3.0.x but IO Platform 1.1.x uses Kryo 2. See gh-4719
-
- 09 Dec, 2015 10 commits
-
-
Andy Wilkinson authored
Closes gh-4738
-
Andy Wilkinson authored
Tomcat 8.0.30 has changed to using relative URIs in its redirects by default. To avoid any problems that this behaviour change may causes we override the default and configure Tomcat to continue to use absolute URIs. Closes gh-4715
-
Andy Wilkinson authored
Closes gh-4721
-
Andy Wilkinson authored
Closes gh-4720
-
Andy Wilkinson authored
Closes gh-4719
-
Andy Wilkinson authored
Closes gh-4718
-
Andy Wilkinson authored
Closes gh-4717
-
Andy Wilkinson authored
Closes gh-4716
-
Andy Wilkinson authored
Closes gh-4714
-
Andy Wilkinson authored
Closes gh-4713
-
- 03 Dec, 2015 3 commits
-
-
Andy Wilkinson authored
Previously, LoggingApplicationListener would clean up the logging system in response to any application context with which it was registered being closed. This caused problems when a child context was closed. Specifically, closing the child context would cause any SLF4J-based logging systems to unregister the JUL bridge handler preventing an JUL logging being bridged into Logback or Log4J2. This commit updates LoggingApplicationListener so that the logging system is only cleaned up when a root application context is closed. Closes gh-4651
-
Ivan Chen authored
Closes gh-4606
-
Vladimir Tsanev authored
Some libraries like aspectj are using findResource to see the raw bytecode of a class. It will even call findResource for every method of every class of beans that are post processed. This can be significant performance hit on startup when LaunchedURLClassLoader and there are a lot of nested jars. See gh-3640 Fixes gh-4557
-
- 01 Dec, 2015 1 commit
-
-
Andy Wilkinson authored
Previously, EmbeddedWebApplicationContext used synchronized, but did not do so consistently. It also synchronized on this so its lock was exposed outside of the class, creating a risk of deadlock if a caller synchronized incorrectly. Furthermore, not all fields on the class were sychronized so the class wasn't truly thread-safe. This commit attempts to rectify some of the problems above. The use of synchronized has been dropped in favour of using a volatile field for the embedded servlet container. Whenever this field is accessed, a local variable is used to "cache" the value thereby preventing a change on another thread from causing unwanted behaviour such as an NPE. Closes gh-4593
-
- 29 Nov, 2015 1 commit
-
-
Stephane Nicoll authored
-
- 27 Nov, 2015 2 commits
-
-
Stephane Nicoll authored
-
Dave Syer authored
See gh-4401
-
- 26 Nov, 2015 2 commits
-
-
Stephane Nicoll authored
Closes gh-4397
-
Stephane Nicoll authored
Closes gh-4588
-
- 25 Nov, 2015 1 commit
-
-
Stephane Nicoll authored
Closes gh-4520
-
- 23 Nov, 2015 2 commits
-
-
Stephane Nicoll authored
Fixed initially in #3725 The target attribute is effectively checked for null beforehand so this additional defensive check can be removed. Closes gh-4567
-
Dimitri authored
Closes gh-4551
-
- 17 Nov, 2015 1 commit
-
-
Andy Wilkinson authored
Previously, UndertowEmbeddedServletContainerFactory always used Undertow’s default ServletContainer. This meant that if there were two UndertowEmbeddedServletContainers created, they would share the same ServletContainer and the second one that was created would overwrite the deployment for the first. This resulted in a async request handling failing as the attempt to look up the deployment for the first embedded Undertow instance would incorrectly find the deployment for the second. This commit fixes the problem by ensuring that each UndertowEmbeddedServletContainerFactory uses a separate Undertow ServletContainer instance. Closes gh-4329
-
- 14 Nov, 2015 1 commit
-
-
Phillip Webb authored
This reverts commit 331a26a4.
-
- 13 Nov, 2015 1 commit
-
-
Phillip Webb authored
Fixes gh-4464
-
- 09 Nov, 2015 1 commit
-
-
Phillip Webb authored
The CLI application advertises `-cp` support but it appears that only `--cp` is really supported. The fix for gh-178 forgot to update the call to `getParser().parse(...)`. See gh-178
-