Commit Graph

11430 Commits

Author SHA1 Message Date
Phillip Webb
e75d8eaf40 Switch to spring-javaformat plugin
Use `spring-javaformat` to format and check code. Code formatting can
now be applied using the `spring-javaformat-maven-plugin` from the
command line. Existing checkstyle rules have also been replaced and
the CONTRIBUTING.adoc file has been updated.

Closes gh-13255
2018-05-25 20:59:04 -07:00
Phillip Webb
e69296d7d3 Fix checkstyle violations in samples 2018-05-25 18:18:00 -07:00
Phillip Webb
4853477081 Reformat code 2018-05-25 18:17:37 -07:00
Stephane Nicoll
625f428aad Upgrade to gson 2.8.5
Closes gh-13245
2018-05-24 11:40:54 +02:00
Stephane Nicoll
8997143f31 Fix checkstyle violations 2018-05-24 11:40:54 +02:00
Phillip Webb
9f4f229b83 Polish title case in CONTRIBUTING.md 2018-05-21 17:10:52 -07:00
Phillip Webb
2fa057a06c Document how to raise security issues
Update contributing documentation and the issue template with
instructions on how to report security vulnerabilities.

Closes gh-12509
2018-05-21 17:07:44 -07:00
Phillip Webb
37646517cf Polish 2018-05-21 15:17:42 -07:00
Stephane Nicoll
d9029ef69e Fix documentation of spring.kafka.producer.batch-size
Closes gh-13127
2018-05-17 16:08:38 +02:00
Andy Wilkinson
64158ebaf5 Reinstate use of ConversionService for String -> File conversion
Prior to 3db5c70b, RelaxedDataBinder would use a ConversionService
to convert a String into a File via its ObjectToObjectConverter.
3db5c70b changed the configuration of the data binder such that a
FileEditor was registered. Property editors take precedence over any
conversion service so the FileEditor was used instead. This caused a
regression as the FileEditor uses slightly unusual logic for a String
to File conversion. Specifically, when given a value of ".", it will
locate a ClassPathResource for the root of the classpath and use the
result of calling getFile() on that resource. This fails when the
root of the classpath is in a jar file and also provides a different
result when the root of the classpath is not the current directory.

This commit updates RelaxedDataBinder to suppress the registration
of an editor for File. This restores the behaviour prior to 3db5c70b
by allowing the ConversionService to be used instead.

Closes gh-12786
2018-05-17 11:38:48 +01:00
Andy Wilkinson
700faabc56 Start building against Spring Security 4.2.7 snapshots
See gh-13196
2018-05-17 08:29:48 +01:00
Stephane Nicoll
38051d98fd Merge pull request #13175 from kesslerj
* pr/13175:
  Polish "Respect lombok.AccessLevel attributes"
  Respect lombok.AccessLevel attributes
2018-05-16 13:13:54 +02:00
Stephane Nicoll
563d7d70a2 Polish "Respect lombok.AccessLevel attributes"
Closes gh-13175
2018-05-16 13:12:16 +02:00
Jonas Keßler
3699132cf0 Respect lombok.AccessLevel attributes
See gh-13175
2018-05-16 09:54:50 +02:00
Andy Wilkinson
0c55c54cb7 Document how to use Jersey with Spring Security's method security
Closes gh-12995
2018-05-15 10:10:19 +01:00
Andy Wilkinson
e52b721d23 Update the link that's used for Jetty's javadoc
Closes gh-13167
2018-05-15 09:16:23 +01:00
Andy Wilkinson
339fd74810 Call ServletContextListener.contextDestroyed() when Undertow is stopped
Previously, when the embedded Undertow container was stopped, the
servlet deployment was stopped but it was not undeployed. This meant
that contextDestroyed() callback of any registered
ServletContextListeners was not called.

This commit updates UndertowEmbeddedServletContainer to call undeploy
on the deployment manager in addition to the existing call to stop.
Undeploying the servlet deployment calls Undertow to drive the
contextDestroyed callback on any registered ServletContextListeners.

Closes gh-13134
2018-05-14 19:56:08 +01:00
Andy Wilkinson
f07daf898b Merge pull request #12071 from imgx64
* gh-12071:
  Polish "Suppress debug log output during Logback initialization"
  Suppress debug log output during Logback initialization
2018-05-14 18:02:12 +01:00
Andy Wilkinson
1fc2eba98b Polish "Suppress debug log output during Logback initialization"
See gh-12071
2018-05-14 18:01:12 +01:00
imgx64
8f44bb9d42 Suppress debug log output during Logback initialization
Closes gh-12071
2018-05-14 17:57:12 +01:00
Andy Wilkinson
b559cadda9 Provide dependency management for spring-xml
Closes gh-13150
2018-05-14 17:52:29 +01:00
Stephane Nicoll
22642dd2eb Upgrade to Ehcache 2.10.5
Closes gh-13056
2018-05-14 11:06:12 +02:00
Andy Wilkinson
83a6f02ec4 Polish 2018-05-12 09:53:55 +01:00
Andy Wilkinson
a9645a3d07 Polish 2018-05-11 13:29:04 +01:00
Andy Wilkinson
e3f0a70df2 Merge pull request #12958 from Henri Tremblay
* gh-12958:
  Polish "Unwrap InvocationTargetException in isLogConfigurationMessage"
  Unwrap InvocationTargetException in isLogConfigurationMessage
2018-05-11 11:52:02 +01:00
Andy Wilkinson
678e125720 Polish "Unwrap InvocationTargetException in isLogConfigurationMessage"
Closes gh-12958
2018-05-11 11:51:18 +01:00
Henri Tremblay
2953ed1dca Unwrap InvocationTargetException in isLogConfigurationMessage
See gh-12958
2018-05-11 11:51:02 +01:00
Andy Wilkinson
34af02380c Ensure that ZipHeaderPeekIS doesn't miss bytes on partial header read
Closes gh-13032
2018-05-11 10:26:44 +01:00
Stephane Nicoll
b17a00d0c3 Merge pull request #13117 from reegnz:feature/support-jersey-wrapping-resource-config
* pr/13117:
  Polish "Add support for Jersey WrappingResourceConfig"
  Add support for Jersey WrappingResourceConfig
2018-05-11 09:52:30 +02:00
Stephane Nicoll
b48f34117e Polish "Add support for Jersey WrappingResourceConfig"
Closes gh-13117
2018-05-11 09:29:36 +02:00
Zoltan Reegn
dfcd87207f Add support for Jersey WrappingResourceConfig
See gh-13117
2018-05-11 09:29:09 +02:00
Andy Wilkinson
c8b3cea200 Clarify that registration bean URL patterns use Servlet spec format
Closes gh-13080
2018-05-10 15:45:16 +01:00
Andy Wilkinson
d2cef484cb Fix up version numbers following release 2018-05-09 11:25:21 +01:00
Spring Buildmaster
010b4fccbd Next development version 2018-05-09 09:31:46 +00:00
Andy Wilkinson
7cfaf5e287 Upgrade to Spring Integration 4.3.16.RELEASE
Closes gh-13015
2018-05-09 06:35:29 +01:00
Andy Wilkinson
6ce43df110 Upgrade to Spring Security OAuth 2.0.15
Closes gh-13098
2018-05-08 19:17:10 +01:00
Andy Wilkinson
82bf178880 Upgrade to Spring Security 4.2.6
Closes gh-13028
2018-05-08 19:15:42 +01:00
Andy Wilkinson
2c865688f9 Upgrade to Spring Data Ingalls SR12
Closes gh-13014
2018-05-08 12:51:09 +01:00
Andy Wilkinson
2195ed1e8e Update Jetty war package test to expect new ASM transitive dependency
Closes gh-13097
2018-05-08 12:37:19 +01:00
Andy Wilkinson
8a5cefb547 Upgrade to Spring Framework 4.3.17.RELEASE
Closes gh-13013
2018-05-08 11:29:04 +01:00
Andy Wilkinson
63aff45438 Upgrade to Jetty 9.4.10.v20180503
Closes gh-13097
2018-05-08 11:28:01 +01:00
Phillip Webb
c104bae76c Fix checkstyle errors 2018-05-04 15:32:29 -07:00
Phillip Webb
99dad81e9a Update copyright header year for changed files 2018-05-04 12:15:13 -07:00
Phillip Webb
0a0247975c Formatting 2018-05-04 12:00:50 -07:00
Stephane Nicoll
1314aaa368 Avoid early init of CacheManager
This commit restructures the Cache auto-configuration to avoid an early
init on CacheManager (and potentially all its infrastructure). Rather
than adding a dependency on the validator bean, this commit relies on
the fact CacheAspectSupport checks if a CacheManager is available in the
afterSingletonsInstantiated callback. In this case, a simple bean with
a postconstruct callback is enough.

Closes gh-13038
2018-05-04 16:25:06 +02:00
Stephane Nicoll
7392c57343 Fix nested class binding example
Closes gh-13060
2018-05-04 16:13:13 +02:00
Andy Wilkinson
ed9ac53acd Revert "Upgrade to Ehcache 2.10.5"
This reverts commit f78fd74bb9.

See gh-13056
2018-05-04 14:01:17 +01:00
Andy Wilkinson
bea353962c Align Undertow tests with changes made to fix UNDERTOW-1260
Closes gh-13055
2018-05-04 13:45:01 +01:00
Andy Wilkinson
bcd2b7d60f Upgrade to Infinispan 8.2.11.Final
Closes gh-13058
2018-05-04 09:46:29 +01:00
Andy Wilkinson
ebf1622b3a Upgrade to Tomcat 8.5.31
Closes gh-13057
2018-05-04 09:46:28 +01:00