Stephane Nicoll
78797572ac
Merge branch '2.5.x' into 2.6.x
3 years ago
Stephane Nicoll
fa6a1463d0
Polish
3 years ago
Moritz Halbritter
8e99788fc8
Migrate auto-configurations to @AutoConfiguration
...
Closes gh-29871
3 years ago
Stephane Nicoll
719fb2e8e5
Upgrade to Jetty 9.4.45.v20220203
...
Closes gh-29843
3 years ago
Stephane Nicoll
dc171c6462
Upgrade to Jetty 9.4.45.v20220203
...
Closes gh-29791
3 years ago
Stephane Nicoll
a99582a3bb
Upgrade to Jetty 9.4.45.v20220203
...
Closes gh-29771
3 years ago
Stephane Nicoll
098a57affb
Upgrade to R2DBC Borca-RELEASE
...
See gh-28524
3 years ago
Stephane Nicoll
8c8c9c5f28
Upgrade to H2 2.1.210
...
H2 2.x contains several important changes such as moving the primary key
generation mechanism to a sequence-based identifier. This commit fixes
a number of tests that were failing.
Closes gh-29651
Co-authored-by: Andy Wilkinson <wilkinsona@vmware.com>
3 years ago
Henning Poettker
e3d0f1feee
Adjust IDENTITY in DDLs for H2 2.x compatibility
...
See gh-29200
3 years ago
Stephane Nicoll
f812b33cbd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29613
3 years ago
Stephane Nicoll
136b5959c3
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29612
3 years ago
Stephane Nicoll
7f17f819a6
Polish "Enforce use of BDDMockito"
...
See gh-29178
3 years ago
Yanming Zhou
b49418aaaf
Enforce use of BDDMockito
...
1. Replace Mockito.verify*() with BDDMockito.then()
2. Replace Mockito.doReturn() with BDDMockito.willReturn()
3. Adjust checkstyle rule
See gh-29178
3 years ago
Andy Wilkinson
2c049f2b40
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29501
3 years ago
Madhura Bhave
3460c24a16
Ignore context path when calling privilege evaluator
...
Previously, the error page security filter passed the request's URI
to the privilege evaluator. This was incorrect in applications with
a custom context path as the privilege evaluator must be passed a
path that does not include the context path and the request URI
includes the context path.
This commit updates the filter to use UrlPathHelper's
pathWithinApplication instead. The path within the application does
not include the context path. In addition, pathWithinAppliation
also correctly handles applications configured with a servlet
mapping other than the default of /.
Closes gh-29299
Co-Authored-By: Andy Wilkinson <wilkinsona@vmware.com>
3 years ago
Andy Wilkinson
fa9a4a6452
Merge branch '2.6.x' into 2.7.x
3 years ago
Andy Wilkinson
4c422b9f3c
Merge branch '2.5.x' into 2.6.x
3 years ago
Andy Wilkinson
b60612dabb
Disable LoaderIntegrationTests when Docker's unavailable
...
Closes gh-29385
3 years ago
Phillip Webb
e95c514fd5
Merge branch '2.6.x' into 2.7.x
3 years ago
Phillip Webb
f6cdc27b2a
Merge branch '2.5.x' into 2.6.x
3 years ago
Phillip Webb
eca05c42fb
Further refine LoaderIntegrationTests for CI
...
Update `LoaderIntegrationTests` to filter compatible JDKs early.
See gh-29385
3 years ago
Phillip Webb
8aacf4cb36
Merge branch '2.6.x' into 2.7.x
3 years ago
Phillip Webb
392de30390
Merge branch '2.5.x' into 2.6.x
3 years ago
Phillip Webb
de8f8c3e64
Refine LoaderIntegrationTests for CI
...
Refine `LoaderIntegrationTests` to fix failures when CI builds are
running with later JDK versions.
See gh-29385
3 years ago
Phillip Webb
1f77533b09
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29463
3 years ago
Phillip Webb
44537d4494
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29462
3 years ago
Phillip Webb
3d908079ef
Run LoaderIntegrationTests against multiple JDKs
...
Update `LoaderIntegrationTests` to run against OpenJDK 8, 11 and 17 as
well as Oracle JDK 17.
Closes gh-29385
3 years ago
Phillip Webb
9278a502c7
Merge branch '2.6.x' into 2.7.x
3 years ago
Phillip Webb
14fe9347b5
Merge branch '2.5.x' into 2.6.x
3 years ago
Phillip Webb
3f7bf7d34f
Modify SpringApplication Environment rather than setting it
...
Update `SpringBootContextLoader` so that when possible the
`SpringApplication` remains in control of creating the `Environment`
instance.
Prior to this commit, we would always create the `Environment` in the
`SpringBootContextLoader` and then call `setEnvironment` on the
`SpringApplication`. This meant that the `ApplicationEnvironment`
classes were not used and that `isCustomEnvironment` was set to `true`
so no conversion was applied.
With the updated code, an `ApplicationListener` is used to mutate the
`Environment` instance and add the required test property sources.
Fixes gh-29169
3 years ago
Phillip Webb
8147eb6d6d
Merge branch '2.6.x' into 2.7.x
3 years ago
Phillip Webb
e7fe371927
Merge branch '2.5.x' into 2.6.x
3 years ago
Phillip Webb
27ad0804f5
Update copyright year of changed files
3 years ago
Phillip Webb
fee45e056a
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29375
3 years ago
Phillip Webb
91d2b1b988
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29374
3 years ago
Phillip Webb
eb6b48fff0
Use side-effect free environment with tests rather than converting
...
Refine the logic introduced in 64270eca
to use a side-effect free
Environment implementation rather than converting the Environment early.
Early conversion can cause condition evaluation issues if
`src/test/resources/application.properties` files are bound to the
`SpringApplication`. Specifically the `spring.main.web-application-type`
property can change the `Environment` type which must happen before
conditions are evaluated.
Fixes gh-29169
3 years ago
Phillip Webb
e1c84e2972
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29372
3 years ago
Phillip Webb
72696cdb0f
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29371
3 years ago
Phillip Webb
7c16668bf3
Log Docker output to aid debugging
...
Add an SLF4J logger so that we can see real time output of the
Docker container.
See gh-29370
3 years ago
Stephane Nicoll
69d1c3674a
Upgrade to latest Hazelcast 3.x in integration tests
3 years ago
Stephane Nicoll
a780e87e9c
Upgrade to Hazelcast 5.0.2
...
See gh-29265
3 years ago
Phillip Webb
b25e92f3e2
Merge branch '2.6.x' into 2.7.x
3 years ago
izeye
728206dba0
Polish GraphQL changes
...
See gh-29140
Closes gh-29194
3 years ago
Brian Clozel
88ee4fab36
Polish
...
See gh-29140
3 years ago
Brian Clozel
c522a8007b
Add smoke test for Spring GraphQL
...
See gh-29140
3 years ago
Madhura Bhave
d9d161cd6b
Allow previously authorized users to access the error page
...
Prior to this commit, the `ErrorPageSecurityFilter` verified if
access to the error page was allowed by invoking the
`WebInvocationPrivilegeEvaluator` with the Authentication from the
`SecurityContextHolder`.
This meant that access to the error page was denied for a `null` Authentication
or `AnonymousAuthenticationToken` in cases where the error page required
authenticated access. This prevented authorized users from accessing the
error page in case the Authentication wasn't retrievable for the error dispatch,
which is the case for `@Transient` authentication or stateless session policy.
This commit updates the `ErrorPageSecurityFilter` to check access to the error page
only if the error is an authn or authz error in cases where an authentication object
is not found in the SecurityContextHolder. This makes the error response consistent
when bad credentials or no credentials are used while also allowing access to previously
authorized users.
Fixes gh-28953
3 years ago
Phillip Webb
f676602c96
Merge branch '2.5.x' into 2.6.x
3 years ago
Phillip Webb
783981ba98
Merge branch '2.4.x' into 2.5.x
3 years ago
Phillip Webb
d336a96b7f
Update web.xml xsd references to for 3.1 version
...
See gh-29075
3 years ago
Phillip Webb
6e01c3edbe
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29077
3 years ago
Phillip Webb
17363d1b3a
Merge branch '2.4.x' into 2.5.x
...
Closes gh-29076
3 years ago
Phillip Webb
1749c893dc
Update web-app version to 3.1
...
Update the web-app version specified in `web.xml` to 3.1 in order to
make Eclipse happy.
Closes gh-29075
3 years ago
Andy Wilkinson
3b23c542a0
Test servlet 3.1 compatibility in deployment tests
...
Closes gh-28906
3 years ago
Phillip Webb
beb68671bb
Update copyright year of changed files
3 years ago
Scott Frederick
4eed637481
Merge branch '2.5.x'
...
Closes gh-28789
3 years ago
Scott Frederick
12244a8edd
Remove use of Thymeleaf from smoke tests
...
Closes gh-28788
3 years ago
Andy Wilkinson
015cf920da
Name custom task inputs
...
Closes gh-28753
3 years ago
Phillip Webb
b6d0b44703
Fix @SuppressWarnings
3 years ago
Madhura Bhave
dd1d1482dc
Deny unauthorized access to the error page
...
Fixes gh-26356
Co-authored-by Andy Wilkinson <wilkinsona@vmware.com>
3 years ago
Andy Wilkinson
7ed19a3b59
Merge branch '2.5.x'
...
Closes gh-28735
3 years ago
Andy Wilkinson
88457d9cfa
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28734
3 years ago
Andy Wilkinson
7d19ea4ca1
Limit log output produced by spring-boot-deployment-tests:intTest
...
Closes gh-28730
3 years ago
Madhura Bhave
6b79d2860f
Merge branch '2.5.x' into main
...
Closes gh-28724
3 years ago
Madhura Bhave
64270eca51
Convert environment used by SpringBootTestContextLoader
...
This commit aligns `SpringBootTest`s to also use `ApplicationEnvironment`
instead of `StandardEnvironment`. This prevents the side-effect of active
profiles from `@ActiveProfiles` from being added to the environment when
doGetActiveProfiles is called. In this case, calling `addActiveProfiles()`
in the environment post processor would result in `@ActiveProfiles` being
added to the environment first, resulting in the wrong order.
The additional call to `setActiveProfiles()` is also not necessary when using
ApplicationEnvironment because that call was put in place to prevent the side-effect
which `ApplicationEnvironment` does not have.
Fixes gh-28530
3 years ago
Andy Wilkinson
2a342ef416
Merge branch '2.5.x'
...
Closes gh-28662
3 years ago
Andy Wilkinson
5e4a502b2d
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28661
3 years ago
Andy Wilkinson
2cec3971d7
Prohibit unwanted dependencies in all modules not just starters
...
Closes gh-28658
3 years ago
Andy Wilkinson
c80283b85f
Merge branch '2.5.x'
...
Closes gh-28653
3 years ago
Andy Wilkinson
92fd3b79a5
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28652
3 years ago
Andy Wilkinson
08aac25c00
Limit logging produced by spring-boot-loader-tests's intTest task
...
Closes gh-28651
3 years ago
Andy Wilkinson
c7a2d61aee
Merge branch '2.4.x'
...
Closes gh-28485
3 years ago
Andy Wilkinson
7fe6f4887c
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28484
3 years ago
Andy Wilkinson
22d85e6d7b
Allow tests to be run in parallel across multiple workers
...
Closes gh-19876
3 years ago
Andy Wilkinson
2541c0cbdc
Disable on Windows tests that use embedded Kafka
...
Closes gh-28406
3 years ago
Madhura Bhave
42d21a8336
Remove parameterization of session smoke tests
...
There are dedicated smoke tests for Hazelcast, MongoDB and Redis
that run on CI.
This commit also polishes some of the other smoke tests related to
Spring Session
3 years ago
Madhura Bhave
2caa6cb227
Polish "Add smoke tests for Spring Session Redis/Mongo"
...
See gh-28362
3 years ago
Angel L. Villalain Garcia
9a16c246ec
Add smoke tests for Spring Session Redis/Mongo
...
Add smoke tests that verify the correct behavior of the sessions
endpoint when using Spring Session with MongoDB and Redis.
See gh-28362
3 years ago
Stephane Nicoll
4ebac4cc66
Merge branch '2.5.x'
...
Closes gh-28279
3 years ago
Stephane Nicoll
0103eb123b
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28278
3 years ago
dreis2211
ae1167e026
Remove unused settings.xml in integration tests
...
See gh-28269
3 years ago
Madhura Bhave
b350eaee8a
Fix checkstyle
3 years ago
Madhura Bhave
1ff900cce8
Merge pull request #28173 from kandulsh
...
* pr/28173:
Polish "Add smoke test with Spring Session and Hazelcast"
Add smoke test with Spring Session and Hazelcast
Closes gh-28173
3 years ago
Madhura Bhave
8dcf3e2c70
Polish "Add smoke test with Spring Session and Hazelcast"
...
See gh-28173
3 years ago
Susmitha
70dd655b60
Add smoke test with Spring Session and Hazelcast
...
See gh-28173
3 years ago
Andy Wilkinson
0b58d4858d
Merge branch '2.5.x'
...
Closes gh-28200
3 years ago
Andy Wilkinson
322615d9c5
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28199
3 years ago
Andy Wilkinson
8c3820f87e
Fix up-to-date checking of syncAppSource tasks
...
Previously, the project version was used while filtering the apps
source during syncing but it was not considered as an input to
the task. This could result in the syncing being skipped even though
the project's version had changed.
This commit introduces a new custom task to make the configuration
more declarative and to allow the necessary input configuration to be
done in a single place.
Closes gh-28197
3 years ago
Andy Wilkinson
29637706a9
Merge branch '2.5.x'
...
Closes gh-28166
3 years ago
Andy Wilkinson
14a57adb53
Merge branch '2.4.x' into 2.5.x
...
Closes gh-28165
3 years ago
Andy Wilkinson
35b16ea04e
Minimize dependencies of launch script test app
...
Closes gh-28164
3 years ago
Phillip Webb
55a1ec72cc
Update copyright year of changed files
3 years ago
Phillip Webb
4c2c4ec16c
Merge branch '2.5.x'
3 years ago
Phillip Webb
5ba69634c9
Merge branch '2.4.x' into 2.5.x
3 years ago
Phillip Webb
dfd36673f7
Update copyright year of changed files
3 years ago
dreis2211
cf0fcafd13
Polish
...
See gh-27940
3 years ago
Madhura Bhave
8fd9eb72d4
Allow part of a composite contributor in a health group
...
Closes gh-23027
Co-authored-by: Phillip Webb <pwebb@vmware.com>
3 years ago
Andy Wilkinson
fd2fbcb3c6
Merge branch '2.5.x'
...
Closes gh-27758
3 years ago
Andy Wilkinson
6d8ba3e8b1
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27757
3 years ago
Andy Wilkinson
ffbd28b60a
Polish "Polish access modifiers for test classes"
...
See gh-27736
3 years ago
izeye
8a425dedfd
Polish access modifiers for test classes
...
See gh-27736
3 years ago
Andy Wilkinson
2dfdcf5e88
Merge branch '2.5.x'
...
Closes gh-27754
3 years ago
Andy Wilkinson
0d904b8868
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27753
3 years ago
Andy Wilkinson
0b7994a679
Polish "Use 2012 for copyright beginning year"
...
See gh-27734
3 years ago
Andy Wilkinson
e737388f5c
Merge branch '2.5.x'
...
Closes gh-27654
3 years ago
Andy Wilkinson
d6cf46acc5
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27653
3 years ago
Andy Wilkinson
403dda7f0d
Remove field inject and circular reference from Data Mongo smoke test
...
Closes gh-27651
3 years ago
Andy Wilkinson
e265825653
Merge branch '2.5.x'
...
Closes gh-27506
3 years ago
Andy Wilkinson
08e26c97aa
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27505
3 years ago
Andy Wilkinson
031a036c9f
Customize security filter registration in separate management context
...
Fixes gh-27372
3 years ago
Scott Frederick
32bb6f6989
Move deployment tests to system tests pipeline
...
Closes gh-27499
3 years ago
Andy Wilkinson
14db8aec95
Skip server tests on Java 16 as Gradle Plugin is not available
...
See gh-27476
3 years ago
Andy Wilkinson
f830ce5e17
Merge branch '2.5.x'
3 years ago
Andy Wilkinson
27ae302905
Merge branch '2.4.x' into 2.5.x
3 years ago
Andy Wilkinson
931409cdd4
Update copyright header in changed files
3 years ago
Andy Wilkinson
fc9f38351a
Merge branch '2.5.x'
...
Closes gh-27479
3 years ago
Andy Wilkinson
bd3aec4f80
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27478
3 years ago
Andy Wilkinson
d9a24f32b4
Rework spring-boot-server-tests to avoid using Maven
...
Closes gh-27476
3 years ago
Phillip Webb
7e9ac39f0d
Update copyright year of changed files
3 years ago
Andy Wilkinson
37f690323f
Polish
...
Closes gh-27432
3 years ago
Andy Wilkinson
bb26b7bdf5
Polish
...
Closes gh-27431
3 years ago
izeye
734293d491
Polish
...
See gh-27418
3 years ago
Scott Frederick
9f001efa29
Adjust fat jar central directory to account for launch script
...
An upgrade to Apache Commons Compress allows the build plugins to write
the launch script to the fat jar as a proper preamble, making the file
compatible with more jar and zip tooling.
Fixes gh-22336
3 years ago
Andy Wilkinson
51fedd6528
Reinstate support for Hibernate < 5.5
...
See gh-27352
3 years ago
Andy Wilkinson
8259f15451
Fix deprecation warnings
...
See gh-27383
3 years ago
Andy Wilkinson
0d1d637c73
Merge branch '2.5.x'
...
Closes gh-27383
3 years ago
Andy Wilkinson
c9ccfcc25f
Rework Jetty10Http2OverTlsTests so they compile with Java 8
...
Closes gh-27382
3 years ago
Andy Wilkinson
43f1b98864
Polish "Add @WebServiceServerTest slice test support"
...
See gh-27091
3 years ago
Andy Wilkinson
3e0baf1bfd
Merge branch '2.5.x'
...
Closes gh-27353
3 years ago
Andy Wilkinson
c8c784bd5c
Allow @SpyBean to be used to spy on a Spring Data repository
...
Fixes gh-7033
3 years ago
Andy Wilkinson
c00e885ac4
Work around compile warnings from Data Neo4j's use of API Guardian
...
See gh-27170
3 years ago
bono007
d16ecab24b
Remove default spring.mongodb.embedded.version
...
See gh-27108
3 years ago
Stephane Nicoll
72f5995208
Polish
3 years ago
Andy Wilkinson
a7334deb54
Merge branch '2.4.x' into 2.5.x
...
Closes gh-27234
3 years ago
Andy Wilkinson
57d7ba0836
Switch s-b-server-tests from libs-snapshot to snapshot and milestone
...
Closes gh-27233
3 years ago
Andy Wilkinson
580b1b81ab
Fix HTTP/2 over TLS with Jetty 10
...
Fixes gh-26988
3 years ago
Andy Wilkinson
4bf329e266
Correct directory names in Jetty 10 smoke tests
...
See gh-26847
3 years ago
Andy Wilkinson
bc7004d9c6
Fix WebSocket support with Jetty 10.0.x
...
Fixes gh-26847
3 years ago
Phillip Webb
f798f26596
Merge branch '2.4.x'
3 years ago
Phillip Webb
4d62e47c5d
Merge branch '2.3.x' into 2.4.x
3 years ago
Phillip Webb
9e1c78da99
Update copyright year of changed files
3 years ago
Phillip Webb
6ab2df5698
Order DataSourceScriptDatabaseInitializer last
...
Change the order of `DataSourceScriptDatabaseInitializerDetector` so
that it always runs last. This update allows script initialization to
be combined with a high-level migration tool such as Flyway.
Closes gh-26692
3 years ago
Madhura Bhave
a28072bab4
Merge branch '2.4.x' into main
...
Closes gh-26614
4 years ago
Madhura Bhave
27fee5fa95
Configure filter to process preflight requests for webflux actuator endpoints
...
Fixes gh-24541
4 years ago
Madhura Bhave
3ef9b7e634
Merge branch '2.4.x' into main
...
Closes gh-26612
4 years ago
Madhura Bhave
743ac4c394
Merge branch '2.3.x' into 2.4.x
...
Closes gh-26611
4 years ago
Madhura Bhave
b26e842050
Configure CORS in default security configuration for MVC
...
Fixes gh-11987
4 years ago
Andy Wilkinson
24d252e322
Upgrade to Couchbase Client 3.1.5
...
Closes gh-26531
4 years ago
Stephane Nicoll
d3c817b7ba
Polish "Remove unnecessary throws declaration in tests"
...
See gh-26441
4 years ago
weixsun
8a2be288a3
Remove unnecessary throws declaration in tests
...
See gh-26441
4 years ago
Stephane Nicoll
691bbcfdfd
Update copyright year of changed files
...
See gh-26448
4 years ago