Commit Graph

1793 Commits

Author SHA1 Message Date
Phillip Webb
af8e155c6d Polish 2018-02-10 15:03:53 +01:00
Andy Wilkinson
4ecc7b9211 Polish 2018-01-29 20:10:29 +00:00
Andy Wilkinson
5a74f63f7c Polish "Configure ErrorReportValve not to report stack traces"
Closes gh-11790
2018-01-29 19:50:07 +00:00
Alex Panchenko
29736e340e Configure ErrorReportValve not to report stack traces
See gh-11790
2018-01-29 17:23:49 +00:00
Andy Wilkinson
b6576fbe9c Test compression defaults against 8.5.24 as they changed in 8.5.27
See gh-11727
2018-01-22 21:00:13 +00:00
Phillip Webb
8e783cdae9 Polish 2018-01-18 21:42:11 -08:00
Stephane Nicoll
08ec3d2735 Improve class condition check
This commit improves a class condition check on the actual
implementation rather than the general purpose interface.

Closes gh-11608
2018-01-16 11:09:56 +01:00
Brian Clozel
966d4251a4 Warn against custom request factories in RestTemplateBuilder
This commit adds a javadoc note about a usability issue described in
gh-11255. While `RestTemplateBuilder` is an immutable class, providing a
custom instance of request factory and deriving several
builders/templates from that point may have some unexpected behavior,
since that instance is shared amongst builders instances.

This issue is fixed in Spring Boot 2.0 with a replacement method that
leverages a `Supplier<ClientHttpRequestFactory>` instead.

See gh-11255
2018-01-05 16:24:34 +01:00
Brian Clozel
88b15baf20 Upgrade to Jetty 9.4.8.v20171121
Closes gh-11469
2018-01-02 16:06:45 +01:00
Phillip Webb
2aa3295675 Deprecate inapplicable RegistrationBean methods
Inherit and deprecate RegistrationBean methods that are not applicable
to a ServletListenerRegistrationBean.

Fixes gh-11342
2017-12-13 12:21:57 -08:00
Phillip Webb
2c429ba77d Restore static final formatting
Restore static final constants to upper case formatting.

See gh-10457
2017-12-13 12:21:57 -08:00
Stephane Nicoll
d920b49ba1 Polish
See gh-11193
2017-11-29 10:47:09 +01:00
Andy Wilkinson
c14f5fb6ad Polish "Fix handling of spaces in container's document root"
Closes gh-10706
2017-11-23 14:08:00 +00:00
Ali Kord
8031a1bdb4 Fix handling of spaces in container's document root
See gh-10706
2017-11-23 14:01:21 +00:00
Andy Wilkinson
5cf2e76377 Set PID system property before *_LOG_PATTERN system properties
Previously, the PID system property was set after the
CONSOLE_LOG_PATTERN and FILE_LOG_PATTERN system properties. This meant
that the values of the pattern system properties could not reference
the PID system property, i.e. ${PID} would not resolve.

This commit sets the PID system property before the *_LOG_PATTERN
system properties, thereby allowing the latter to reference the
former.

Closes gh-10594
2017-11-23 12:34:00 +00:00
Andy Wilkinson
054ce2865c Protect against partial visibility of Bean Validation API
On WebSphere Liberty, the javax.validation package may be visible but
other javax.validation packages upon which it depends may not be
visible. This can lead to an incorrect assumption that the Bean
Validation API is available when, in fact, it is only partially
available.

Add an additional check for the availability of a class in the
javax.validation.bootstrap package to ensure that it's not just the
javax.validation package that's available.

Closes gh-10877
2017-11-03 14:40:32 +00:00
dreis2211
605e95145a Fix typos in ApplicationArguments and Library
Closes gh-10811
2017-10-30 16:30:56 +01:00
Sebastian Thomschke
7441d6bd86 Honor logging.path config in filePattern for Log4j2 RollingFile
Previously, rolled over files were always written to logs/. This
commit ensures that rotated logs are written into the directory
specified in the application config's logging.path property.

Closes gh-10554
2017-10-12 14:39:21 +01:00
Andy Wilkinson
c44b912fc2 Ensure that Undertow is stopped when it fails to start
Previously, if Undertow failed to start, some of Undertow's
internal components would have been started but the started field of
UndertowEmbeddedServletContainer remained false. This meant that when
stop() was called nothing was done as the container believed it had
not been started.

This commit updates UndertowEmbeddedServletContainer to stop both the
DeploymentManager and the Undertow instance in start() if an exception
is thrown. This aligns the behaviour of
UndertowEmbeddedServletContainer with that of the Tomcat equivalent.

Closes gh-10528
2017-10-11 13:30:53 +01:00
Johnny Lim
bfa291f671 Polish 2017-10-02 15:07:03 +01:00
Andy Wilkinson
858b092a87 Make servlet context property source available before refresh
Previously, when deploying a Spring Boot application to a container,
the servlet context property source was not fully initialised until
the context was refreshed. This led to a problem where a value from a
property source with lower precedence would be seen during the early
stages of the application starting. Once the servlet context property
source had been initialized, its value for the property would then
become visible effectively making it appear as if the property's
value had changed during startup. This led to a specific problem
with determining active profiles.

If spring.profiles.active was set both in JNDI and via the servlet
context both profiles would end up being active, rather than the
more intuitive behaviour of the profiles made active via the servlet
context overriding those made active via JNDI.

This commit updates SpringBootServletInitializer so that it explicitly
creates the StandardServletEnvironment and initializes its property
sources using the servlet context. This is done before the application
is created and run, thereby ensuring that the servlet context
property source is available throughout the application's startup.

Closes gh-9972
2017-10-02 12:38:59 +01:00
Andy Wilkinson
beb257f452 Rework JettyEmbeddedErrorHandler to support Jetty 8
Closes gh-10175
2017-09-06 09:51:22 +01:00
Paul Vorbach
04ca7f137d Identify and fix incomplete assertions
Several calls to assertThat lacked a following assertion most often due
to wrong use of parenthesis.

See gh-10084
2017-08-29 13:49:28 +02:00
Stephane Nicoll
83eee7e65d Fix XA DataSource class name for Firebird
Closes gh-10102
2017-08-29 13:48:57 +02:00
Stephane Nicoll
cabd798353 Polish NestedConfigurationProperty documentation
Closes gh-9895
2017-08-14 16:13:54 +02:00
Gytis Trikleris
4d42d89d71 Upgrade to Narayana 5.5.30.Final
Closes gh-10004
2017-08-14 15:44:46 +02:00
Johnny Lim
56f47e1a50 Polish
Closes gh-9938
2017-08-03 21:17:10 +01:00
Andy Wilkinson
2925f1b86a Polish "Simplify retrieval of Narayana XARecoveryModule"
Closes gh-9725
2017-07-28 07:32:10 +01:00
Gytis Trikleris
3874196efe Simplify retrieval of Narayana XARecoveryModule
See gh-9725
2017-07-28 07:32:01 +01:00
Johnny Lim
fe1eb8b5f3 Polish
See gh-9855
2017-07-26 13:39:00 +02:00
Andy Wilkinson
8207852bcd Ensure that detected request factories are initialized
Closes gh-9797
2017-07-22 08:10:04 +01:00
Andy Wilkinson
f4f54047e0 Clarify behaviour of SpringApplicationBuilder.sibling(Object...)
Closes gh-8898
2017-07-21 19:50:39 +01:00
Stephane Nicoll
e2880ee2c3 Polish "Improve ExitCodeGenerator doc"
Closes gh-9740
2017-07-13 09:21:36 +02:00
Phillip Webb
aa57ca7e18 Polish 2017-07-06 16:53:04 -07:00
Madhura Bhave
222a09cfd3 Make ROOT logger name case-insensitive when setting log level
Fixes gh-9693
2017-07-06 14:25:30 -07:00
Madhura Bhave
96b1a8547f Decorate KeyManager for Undertow only when an alias is configured
Fixes gh-9351
2017-07-05 18:40:09 -07:00
Stephane Nicoll
7f8a8ba115 Properly handle null package
Closes gh-9621
2017-06-29 09:59:50 +02:00
Stephane Nicoll
26b27d41e7 Polish "Narrow the event types ConfigFileApplicationListener supports"
Closes gh-9628
2017-06-29 09:57:41 +02:00
satamas
d26857289c Narrow the event types ConfigFileApplicationListener supports
See gh-9628
2017-06-29 09:29:44 +02:00
Andy Wilkinson
59122358d3 Clean up and format code 2017-06-16 08:58:14 +01:00
Stephane Nicoll
31ee45bf36 Polish 2017-06-15 13:35:33 +02:00
Stephane Nicoll
c5c6a526d3 Polish "Allow abstract serializers/deserializer in @JsonComponent"
Closes gh-9443
2017-06-15 13:30:25 +02:00
Vladimir Tsanev
6ba7849094 Allow abstract serializers/deserializer in @JsonComponent
Previously JsonComponentModule tried to instantiate all
inner classes and failed with InstantiationException when
the class is abstract and extends JsonSerializer/JsonDeserializer.
With this change is now possible to have common logic inner abstract classes.

See gh-9443
2017-06-15 13:27:26 +02:00
Andy Wilkinson
2e2fde0dcd Stop using URLResource API that was deprecated in Undertow 1.4.16
Closes gh-9464
2017-06-12 14:24:43 +01:00
Andy Wilkinson
a03ddd331c Polishing 2017-06-07 17:14:26 +01:00
Andy Wilkinson
5b30269ac9 Polish "Copy conversion service when performing environment conversion"
Closes gh-9246
2017-06-07 10:24:15 +01:00
Rubinson,Ethan(erubinson)
a424081803 Copy conversion service when performing environment conversion
Previously, when a web environment was converted to a
StandardEnvironment, any customizations of the source environment's
ConversionService were lost.

This commit updates the logic that performs the conversion to copy
the source's ConversionService to the converted environment, thereby
ensuring that any customizations are retained.

Closes gh-9259
See gh-9246
2017-06-07 10:21:56 +01:00
Andy Wilkinson
aa6dbdbae2 Ensure that listeners are called when application fails to run
Closes gh-9054
2017-06-06 14:53:05 +01:00
Andy Wilkinson
b9a09fcd64 Abandon failure analysis if start of cycle cannot be determined
Previously, BeanCurrentlyInCreationFailureAnalyzer would return
a FailureAnalysis for any BeanCurrentlyInCreationException even if
it could not determine where the cycle begins. This could lead to an
inaccurate diagram of the cycle being output.

This commit updates BeanCurrentlyInCreationFailureAnalyzer so that
it abandons its analysis and returns null if it is unable to determine
where the cycle begins.

Closes gh-8164
2017-06-02 11:08:29 +01:00
Stephane Nicoll
08a8bb0f8b Revert "Add failure analyzer for BeanCreationException"
Closes gh-9220
2017-05-30 14:23:47 +02:00