9290 Commits

Author SHA1 Message Date
Phillip Webb
df70c42f98 Allow classpath wildcards with Java 11 or above
Update `StaticResourceJars` to catch both `IOException` and
`InvalidPathException` when checking URLs. Prior to this commit only
`IOException` was caught which worked on Java 8 but not Java 11 or
above.

Fixes gh-21312
2020-05-05 12:10:31 -07:00
Phillip Webb
720d23af41 Further restrict configuration wildcard patterns
Extend wildcard restrictions to the `spring.config.name` property. Also
refine exception messages to include the property value.

Closes gh-21217
2020-05-05 10:27:35 -07:00
Katada, Junya
bc2a83062b Fix duplicate slashes in URL links
See gh-21108
2020-05-05 17:48:49 +02:00
Andy Wilkinson
f6d8c7d23c Simplify ReactiveWebServerApplicationContext.ServerManager
Closes gh-21315
2020-05-05 15:04:09 +01:00
Andy Wilkinson
a688ac3f64 Improve testing of ReactiveWebServerApplicationContext
Closes gh-21314
2020-05-05 12:45:24 +01:00
Kyle Hoehns
fd46002666 Fix typo for includeLayerTools
See gh-21310
2020-05-04 17:29:28 -07:00
Andy Wilkinson
e484246388 Add missing implementation attributes to Shade config
Fixes gh-21304
2020-05-04 15:58:33 +01:00
Andy Wilkinson
de1e3c6069 Include empty layers when listing and extracting
Fixes gh-21301
2020-05-04 15:50:55 +01:00
Stephane Nicoll
f4ae2b0584 Merge branch '2.2.x'
Closes gh-21305
2020-05-04 14:58:43 +02:00
Stephane Nicoll
8abf658087 Remove dependency management for the Wavefront SDK
Closes gh-21295
2020-05-04 10:17:01 +02:00
Phillip Webb
9486842bad Merge branch '2.2.x'
Closes gh-21294
2020-05-01 18:31:14 -07:00
Phillip Webb
92ef515fbe Fix @DefaultValue PropertyEditor based conversion
Update `ValueObjectBinder` reattempt conversion if the `@DefaultValue`
contains a single element. Prior to this commit, single element
conversion relied on the `ArrayToObjectConverter` which isn't always
available.

Fixes gh-21264
2020-05-01 18:26:18 -07:00
Phillip Webb
07415e1603 Attempt to fix Windows CI test failure 2020-04-30 18:17:29 -07:00
Phillip Webb
57179c0d3d Add InputStreamSourceToByteArrayConverter
Add an `InputStreamSourceToByteArrayConverter` that can be used to
convert from an `InputStreamSource` (such as a `Resource`) to a
byte array.

Closes gh-21285
2020-04-30 16:40:05 -07:00
Phillip Webb
d52bf83ab2 Polish 2020-04-30 16:40:05 -07:00
Madhura Bhave
8ec16bd027 Restrict wildcard pattern support for configuration files
This commit restricts how wildcards can be used in search
locations for property files. If a search location contains
a pattern, there must be only one '*' and the location should
end with a '*/'. For search locations that specify the file
name, the pattern should end with '*/<filename>'.

The list of files read from wildcard locations are now sorted
alphabetically according to the absolute path of the file.

Closes gh-21217
2020-04-30 14:17:44 -07:00
Andy Wilkinson
79a2e7f469 Upgrade to Undertow 2.1.0.Final
Closes gh-21278
2020-04-30 20:18:11 +01:00
Andy Wilkinson
1f00938c5a Upgrade to SAAJ Impl 1.5.2
Closes gh-21277
2020-04-30 20:18:11 +01:00
Andy Wilkinson
a361583c8c Upgrade to Jetty EL 8.5.54
Closes gh-21276
2020-04-30 19:46:48 +01:00
Andy Wilkinson
a7fd02e243 Upgrade to Hazelcast 3.12.7
Closes gh-21275
2020-04-30 19:46:46 +01:00
Andy Wilkinson
2b76f837b4 Upgrade to Byte Buddy 1.10.10
Closes gh-21274
2020-04-30 19:46:45 +01:00
Andy Wilkinson
04c7132eb3 Rename customize to reflect type that it customizes
See gh-20961
2020-04-30 19:43:52 +01:00
Scott Frederick
1c11e163c7 Fix Maven plugin command-line examples
Fixes gh-21078
2020-04-30 12:19:14 -05:00
Andy Wilkinson
83e4bb39b6 Add transaction auto-configuration to @DataMongoTest
Closes gh-20182
2020-04-30 15:05:23 +01:00
Stephane Nicoll
52fbf47e7f Upgrade to Flyway 6.4.1
Closes gh-21269
2020-04-30 15:35:48 +02:00
Stephane Nicoll
6051a27bd7 Upgrade to Spring Integration 5.2.6
Closes gh-20950
2020-04-30 15:24:19 +02:00
Stephane Nicoll
5292b3a693 Upgrade to Spring Integration 5.1.10
Closes gh-20941
2020-04-30 15:22:41 +02:00
dreis2211
dd11b8adba Fix checkstyle violation
See gh-21266
2020-04-30 12:43:51 +02:00
Andy Wilkinson
1abe0f16d0 Apply gridFsDatabase to auto-configured ReactiveGridFsTemplate
Closes gh-18284
2020-04-30 10:46:10 +01:00
Madhura Bhave
6007a71b9c Polish "Add support for customizing RSocketMessageHandler"
See gh-21081
2020-04-29 17:15:09 -07:00
Aarti Gupta
456d6e78fe Add support for customizing RSocketMessageHandler
See gh-21081
2020-04-29 17:11:19 -07:00
Scott Frederick
0cb090766f Fix typos in mock tests data 2020-04-29 18:08:34 -05:00
Scott Frederick
a30740f8d2 Separate server properties for message and errors
Prior to this commit, there was a property server.error.include-details
that allowed configuration of the message and errors attributes in a
server error response.

This commit separates the control of the message and errors attributes
into two separate properties named server.error.include-message and
server.error.include-binding-errors. When the message attribute is
excluded from a servlet response, the value is changed from a
hard-coded text value to an empty value.

Fixes gh-20505
2020-04-29 17:56:47 -05:00
Andy Wilkinson
d65d951318 Polish "Add support for customizing Spring Session's cookie serializer"
See gh-20961
2020-04-29 20:53:58 +01:00
Vedran Pavic
32454b83b4 Add support for customizing Spring Session's cookie serializer
This commit introduces a CookieSerializerCustomizer callback that
allows the customization of the auto-configured
DefaultCookieSerializer bean. This is particularly useful for
configuring cookie serializer's capabilities, such as SameSite, that
are not supported by the Servlet API and therefore not exposed via
server.servlet.session.cookie.* properties.

See gh-20961
2020-04-29 20:53:58 +01:00
Scott Frederick
f3d717e97a Use paketo-buildpacks/builder as default builder
This commit changes the default builder image from
`cloudfoundry/cnb:bionic-platform-api-0.2` to
`gcr.io/paketo-buildpacks/builder:base-platform-api-0.3`. It also
uses a `paketo-buildpacks/builder` image instead of a
`cloudfoundry/cnb` image to test compatibility with lifecycle v2
and uses paketo naming instead of cloudfoundry when mocking builder
interactions.

Some adjustments to lifecycle phases were also made to align more
closely with the pack CLI.

Fixes gh-21066
2020-04-29 14:28:25 -05:00
Andy Wilkinson
14c88b3c04 Upgrade to Spring Integration 5.3.0.RC1
Closes gh-20951
2020-04-29 20:21:49 +01:00
Andy Wilkinson
c7a5b72565 Improve compatibility by replacing use of seq with a native for-loop
Closes gh-21068
2020-04-29 19:30:35 +01:00
Andy Wilkinson
76d71e58d7 Upgrade to Spring Kafka 2.5.0.RC1
Closes gh-20953
2020-04-29 19:06:35 +01:00
Stephane Nicoll
d16074d8fd Bind and unbind Kafka metrics as consumers and producers come and go
Fixes gh-21008

Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
2020-04-29 17:53:08 +01:00
Brian Clozel
692a8c47cc Rename property for registering default Servlet
As a follow-up for gh-21214, this commit renames the property to:

`"server.servlet.register-default-servlet=false"`

Closes gh-21214
2020-04-29 18:42:50 +02:00
Brian Clozel
c7c01f8ab4 Add property for registering default Servlet
This commit adds a new configuration property for configuring the
registration of the default Servlet in Servlet containers.

`"server.servlet.default-servlet.registered=false"`

The default of this property is still `true`, as it's been the case in
previous releases.

Closes gh-21214
2020-04-29 18:02:33 +02:00
Andy Wilkinson
2d769e7679 Polish "Stop limiting layer customization to external modules"
See gh-21207
2020-04-29 14:22:43 +01:00
Paddy Drury
98644df64d Stop limiting layer customization to external modules
See gh-21207
2020-04-29 14:22:43 +01:00
dreis2211
c1c90b11b8 Fix some deprecations
See gh-21212
2020-04-29 15:10:30 +02:00
Stephane Nicoll
2eef71cba5 Upgrade to Spring AMQP 2.2.6
Closes gh-20947
2020-04-29 15:08:49 +02:00
Stephane Nicoll
371774c109 Upgrade to WebJars Locator Core 0.45
Closes gh-21255
2020-04-29 14:34:51 +02:00
Stephane Nicoll
2807e64e73 Upgrade to Tomcat 9.0.34
Closes gh-21254
2020-04-29 14:34:50 +02:00
Stephane Nicoll
b042af606f Upgrade to Spring WS 3.0.9.RELEASE
Closes gh-21253
2020-04-29 14:34:49 +02:00
Stephane Nicoll
2b969d07d7 Upgrade to SendGrid 4.4.8
Closes gh-21252
2020-04-29 14:34:48 +02:00