Commit Graph

16228 Commits (eabe9949ddd649a677bf50cbae31312bb578e3c0)
 

Author SHA1 Message Date
Denis Washington a09ee17cbf Add OAuth2 server implementation section to docs
As auto-configuration for Spring Security OAuth has been removed
from Spring Boot 2.0 and Spring Security 5 doesn't have OAuth
2.0 Authorization / Resource Server support yet, it has not
been obvious at all how to implement an OAUth 2.0 server with
Spring Boot 2.0.

For that reason, this new section briefly explains the current
temporary situation and points to the spring-security-oauth2-autoconfigure
module that restores the auto-configuration support for OAuth
2.0 Authorization and Resource Servers.

Closes gh-12491
7 years ago
Phillip Webb efeede9f56 Merge pull request #12528 from igor-suhorukov
* pr/12528:
  Polish "Iterate map by using lambda function"
  Iterate map by using lambda function
7 years ago
Phillip Webb 78534a753d Polish "Iterate map by using lambda function"
See gh-12528
7 years ago
igor-suhorukov ffc883b005 Iterate map by using lambda function
Closes gh-12528
7 years ago
Phillip Webb a520056838 Make containsDescendantOf a default method
Change `ConfigurationPropertySource.containsDescendantOf` to have a
default implementation that return `UNKNOWN`.

Fixes gh-12539
7 years ago
Phillip Webb 63b8ccc7c3 Fix IterableConfigurationPropertySource javadoc
Fixes gh-12540
7 years ago
Phillip Webb c66781a3d3 Set using collection copies when possible
Update `Map` and `Collection` binders to create a copy of the existing
collection whenever possible. Prior to this commit the binder would
always mutate the existing value and then call the setter with the
same instance. This could cause issues if the setter expected a
different instance.

Fixes gh-12322
7 years ago
Phillip Webb 6e2ecb8a43 Fix broken endpoint integration tests
Ensure that JSON response is returned when extracting data from the
error details.

See gh-12513
7 years ago
Andy Wilkinson 72e36eadae Polish 7 years ago
Andy Wilkinson 626e488da5 Merge pull request #12527 from Igor Suhorukov
* gh-12527:
  Polish "Follow project convention for lambda expression"
  Follow project convention for lambda expression
7 years ago
Andy Wilkinson 6c77b012f0 Polish "Follow project convention for lambda expression"
Csee gh-12527
7 years ago
igor-suhorukov 261264cef3 Follow project convention for lambda expression
Closes gh-12527
7 years ago
Stephane Nicoll 78571f50f8 Restore server.error.include-stacktrace default value 7 years ago
Stephane Nicoll 3e826c1a01 Fix typo in Micrometer examples
Closes gh-12529
7 years ago
Phillip Webb e4a21b2393 Merge branch '1.5.x' 7 years ago
Phillip Webb a8f366a554 Fix copyright header for edited files 7 years ago
Phillip Webb 79ad03b584 Merge branch '1.5.x' 7 years ago
Phillip Webb 23892e33d6 Add text/plain error response support
Refine `BasicErrorController` mappings so that only JSON and XML get
structured responses. A simple string response is returned for all
other media types.

Fixes gh-12513
7 years ago
Phillip Webb 620208a802 Polish 7 years ago
Phillip Webb f80db03e75 Remove repositories section from published POM
Fixes gh-12378
7 years ago
Phillip Webb e975dbe3f0 Only use jar shortcut for matching URLs
Update JAR `Handler` logic so that the existing `jarFile` is only used
if the requested URL starts with the same path. Prior to this commit it
was possible to construct a URL with another URL as context. This could
mean that the `handler` was shared and the already resolved `jarFile`
contained in the handler wasn't necessarily suitable.

Fixes gh-12483
7 years ago
Andy Wilkinson 217dbe4a6f Merge pull request #12511 from Onur Kağan Özcan
* gh-12511:
  Upgrade maven dependency plugin version to 3.0.2
7 years ago
Onur Kağan Özcan dfe099b202 Upgrade maven dependency plugin version to 3.0.2
Closes gh-12511
7 years ago
Andy Wilkinson 36ea387a67 Close RandomAccessDataFile when direct JarFile is closed
Previously, the underlying RandomAccessDataFile was not closed when
the JarFile that was using it was closed. This causes a problem on
Windows as the open file handle prevents the file from being deleted.

This commit updates JarFile to close the underlying
RandomAccessDataFile when it is closed and has a JarFileType of
DIRECT.

Previously, when accessing the manifest of a jar file that maps to a
nested directory (BOOT-INF/classes) a new JarFile was created from the
root jar file, the manifest was retrieved, and the new JarFile was
closed. This could lead to the underlying RandomAccessDataFile being
closed while it was still in use.

This commit improves JarFile to retrieve the manifest from the
existing outer JarFile, thereby avoiding the need to create and close
a new JarFile.

Unfortunately, PropertiesLauncher creates a number of scenarios where
a JarFile with a type of direct is closed while it’s still being used.
To accommodate this behaviour, RandomAccessDataFile has been updated
so that it can re-open the underlying RandomAccessFile if it is used
after it has been closed.

Closes gh-12296
7 years ago
Brian Clozel 0162978c78 Support server.error.whitelabel.enabled in WebFlux
This commit disables the default HTML view in the WebFlux error handling
support when `server.error.whitelabel.enabled=false`.
In this case, the original exception will be forwarded down the stream
and handled by the default `WebExceptionHandler` provided by Spring
WebFlux (likely to respond a blank page and an error HTTP response
status).

Closes gh-12520
7 years ago
Brian Clozel 161ecc0575 Bind server.error.whitelabel.enabled to ErrorProperties
Closes gh-12516
7 years ago
Andy Wilkinson 2da4897aa8 Polish 7 years ago
Andy Wilkinson 87782a2db4 Upgrade JDK 10-based CI to jdk-10-ea-46
Closes gh-12515
7 years ago
Phillip Webb e40acf2447 Polish 7 years ago
Phillip Webb 522e3df394 Fix same name configuration properties adapting
Update `SpringConfigurationPropertySources` adapter logic so that and
exact instance match is used when checking if the cache can be used.

Prior to this commit if a property source was replaced with one that
had exactly the same name, the adapted version would not change.

Fixes gh-12451
7 years ago
Phillip Webb c201c1dac1 Polish 7 years ago
Madhura Bhave 9384e5c3c1 Fix binding to bean with cloned arrays
Fixes gh-12478
7 years ago
Madhura Bhave cb3da28bb9 Enforce length > 1 for H2 and WebServices path
Fixes gh-12485
7 years ago
Madhura Bhave e6149fda1c Assert endpoints basePath starts with '/' or is empty
Fixes gh-12489
7 years ago
Brian Clozel b8e8647391 Fix Servlet requirements in reference docs
As of Spring Framework 5.0, only Servlet 3.1+ containers are supported.
See https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x

This commit updates the reference documentation to reflect that and also
removes sections describing pre-Servlet 3.1 solutions, as those are not
supported anymore.

Fixes gh-12370
7 years ago
Brian Clozel 2561f320e8 War deployment is not supported for WebFlux apps
Even though War deployment is supported by Spring Framework itself for
WebFlux applications, this is not the case currently in Spring Boot.

Fixes gh-12455
7 years ago
Brian Clozel a0b9974796 Polish Couchbase tests 7 years ago
Brian Clozel ac64441611 Merge pull request #12495 from dreis2211
* pr/12495:
  Use ApplicationContextRunner in tests
7 years ago
dreis2211 ca30739bf9 Use ApplicationContextRunner in tests
Closes gh-12495
7 years ago
Andy Wilkinson 19b726854d Upgrade to Mariadb 2.2.3
Closes gh-12503
7 years ago
Andy Wilkinson 6da049b7e3 Upgrade to Solr 6.6.3
Closes gh-12502
7 years ago
Andy Wilkinson c940f49bb3 Upgrade to Johnzon Jsonb 1.1.7
Closes gh-12501
7 years ago
Andy Wilkinson 3aafbce4f8 Upgrade to Byte Buddy 1.7.11
Closes gh-12500
7 years ago
Andy Wilkinson b948e32f12 Upgrade to Couchbase Client 2.5.6
Closes gh-12499
7 years ago
Andy Wilkinson d5e588d50a Merge branch '1.5.x' 7 years ago
Andy Wilkinson cfcc387593 Add dependency management for Spring AMQP's testing modules
Closes gh-12393
7 years ago
Andy Wilkinson 53924de556 Merge branch '1.5.x' 7 years ago
Brian Clozel 4a0b69aa1f Merge pull request #12492 from tsachev
* pr/12492:
  Fix Javadoc for ServiceLevelAgreementBoundary
7 years ago
Andy Wilkinson f553de4486 Upgrade to Infinispan 8.2.10.Final
Closes gh-12498
7 years ago
Andy Wilkinson 394054c7b7 Upgrade to Tomcat 8.5.29
Closes gh-12497
7 years ago