Commit Graph

46602 Commits

Author SHA1 Message Date
Scott Frederick
35eba69996 Merge branch '3.1.x'
Closes gh-38759
2023-12-12 15:43:10 -06:00
Scott Frederick
823054f543 Allow native spring-boot-image-tests to run without an existing snapshot
Closes gh-38757
2023-12-12 15:42:37 -06:00
Moritz Halbritter
e81d1226fe Prevent integer overflow when checking disk space 2023-12-12 16:26:58 +01:00
Moritz Halbritter
01f59608ac Merge branch '3.1.x'
Closes gh-38752
2023-12-12 16:23:33 +01:00
Moritz Halbritter
b8021dbc65 Exclude Rabbit Stream when testing RabbitAutoConfiguration
The stream auto-configuration is tested in RabbitStreamConfigurationTests,
and excluding it prevents the creation of the "rabbitStreamEnvironment"
Environment bean, which delays the application context close by 1 second
because it has to wait for some Netty resources to gracefully shut down.

Closes gh-38750
2023-12-12 16:12:22 +01:00
Andy Wilkinson
612bf95b05 Adapt to changes in the locking model for closing an app context
See gh-38666
2023-12-12 14:51:06 +00:00
Moritz Halbritter
a242bd81e2 Merge branch '3.1.x'
Closes gh-38747
2023-12-12 13:55:44 +01:00
Moritz Halbritter
af8e6a422a Merge pull request #38702 from quaff
* pr/38702:
  Use idiomatic AssertJ assertions

Closes gh-38702
2023-12-12 13:55:34 +01:00
Yanming Zhou
3c65fdfa12 Use idiomatic AssertJ assertions
See gh-38702
2023-12-12 13:53:20 +01:00
Moritz Halbritter
198dbb4a45 Auto-configure observatibility beans in sliced tests
If @AutoConfigureObservability is applied to a sliced test, it
auto-configures:

- An in-memory MeterRegistry
- A no-op Tracer
- An ObservationRegistry

Closes gh-38568
2023-12-12 11:29:43 +01:00
Moritz Halbritter
ff82b8d1c1 Add auto-configuration for a no-op tracer
This auto-configuration ensures, if Micrometer Tracing is on the
classpath, that there is always a tracer. It backs off if there is
already a tracer, for example contributed by the Brave or the Otel
auto-configurations, which are run before.

See gh-38568
2023-12-12 11:29:43 +01:00
Phillip Webb
ea87787279 Merge branch '3.1.x'
Closes gh-38741
2023-12-11 20:37:45 -08:00
Phillip Webb
39bc7c8582 Support getPermissions() call on Gradle 8.6-milestone-1
The `getPermissions` method is now part of the private
`ParentDirectoryStub` class so we now need to call
`setAccessible(true)`.

Fixes gh-38718
2023-12-11 20:35:06 -08:00
Phillip Webb
0fe7d78732 Restore support for custom bind converters in collections
Update the `beansConverterService` introduced in commit f4e05c91c7
so that it can also handle collection based conversions.

Fixes gh-38734
2023-12-11 17:05:27 -08:00
Andy Wilkinson
beba1f176a Do not enable WebFlux security unless other configuration is active
Following the changes in gh-37504, the reactive resource server
auto-configuration could enable WebFlux security in situations where
it was otherwise in active. This could then result in an application
failing to start as no authentication manager is available.

This commit updates the configurations that enable WebFlux security
so that they fully back off unless their related configurations are
active. Previously, only the configuration of the
SecurityWebFilterChain would back off. This has been expanded to
cover `@EnableWebFluxSecurity` as well. This has required splitting
the configuration classes up so that the condition evaluation order
can be controlled more precisely. We need to ensure that the JWT
decoder bean or the opaque token introspector bean has been defined
before evaluation of the conditions for `@EnableWebFluxSecurity`.
Without this control, the import through `@EnableWebFluxSecurity` in
one location where the conditions do not matchcan prevent a
successful import in another where they do.

Fixes gh-38713
2023-12-11 12:46:29 +00:00
Moritz Halbritter
6330190913 Merge branch '3.1.x'
Closes gh-38728
2023-12-11 09:44:19 +01:00
Moritz Halbritter
52baf0003b Merge pull request #38708 from quaff
* pr/38708:
  Cleanup kotlin sources

Closes gh-38708
2023-12-11 09:40:10 +01:00
Yanming Zhou
ebfbc0ef05 Cleanup kotlin sources
1. remove unused imports
2. remove redundant semicolon
3. remove empty class body
4. remove redundant 'constructor' keyword
5. remove redundant 'Unit' return type
6. use non-null type if possible

See gh-38708
2023-12-11 09:23:42 +01:00
Moritz Halbritter
cc665dd529 Merge branch '3.1.x'
Closes gh-38727
2023-12-11 09:18:25 +01:00
Moritz Halbritter
4ad9f1174f Merge pull request #38674 from shin-mallang
* pr/38674:
  Rename local variable in BatchAutoConfiguration

Closes gh-38674
2023-12-11 08:25:58 +01:00
Donghun Shin
f922b3de03 Rename local variable in BatchAutoConfiguration
See gh-38674
2023-12-11 08:25:39 +01:00
Moritz Halbritter
ad586078a7 Merge branch '3.1.x'
Closes gh-38725
2023-12-11 08:18:43 +01:00
Moritz Halbritter
1b3eef7d62 Merge pull request #38706 from pirgeo
* pr/38706:
  Update Dynatrace documentation links

Closes gh-38706
2023-12-11 08:17:58 +01:00
Georg Pirklbauer
a8d706f485 Update Dynatrace documentation links
See gh-38706
2023-12-11 08:13:56 +01:00
Andy Wilkinson
e6970243ee Retry read on ClosedByInterruptException
In gh-38154, we started handling ClosedByInterruptException. The
FileChannel was repaired by recreating it and then the exception was
rethrown. This allowed other threads to use the channel that had been
read by an interrupted thread while allowing that interruption to
continue.

This approach has proven to be insufficient as there are scenarios
where the read needs to succeed on the interrupted thread. This
commit updates the handling of ClosedByInterruptException so that
this is the case. The FileChannel is recreated as before but the
thread's interrupted flag is now cleared before retrying the read.
The flag is then reinstated so that any subsequent actions that
should fail due to the interruption will do so.

We could clear and reinstate the interrupted flag before the first
read, rather than catching ClosedByInterruptException. This approach
was rejected as it will have an impact on the performance of the
happy path where the thread hasn't been interrupted.

Fixes gh-38611
2023-12-07 10:49:40 -08:00
Andy Wilkinson
9eae176fce Merge branch '3.1.x'
Closes gh-38692
2023-12-07 12:12:07 +00:00
Andy Wilkinson
2d6d2352e6 Upgrade CI images to ubuntu:jammy-20231128
Closes gh-38691
2023-12-07 12:11:30 +00:00
Phillip Webb
359a6cb5bb Use encoded version of path for jar URLs
Update `JarUrl` so that the encoded version of the path is used.
This allows jars to placed in directories with `#` or `!` in the
name.

Fixes gh-38660
2023-12-06 16:20:27 -08:00
Phillip Webb
847daf484c Fix JarUrlTests
Fix `JarUrlTests` to use the jarFile rather than temp.
2023-12-06 16:19:57 -08:00
Andy Wilkinson
fc1a5033e8 Start building against Spring Security 6.2.1 snapshots
See gh-38700
2023-12-06 20:21:33 +00:00
Andy Wilkinson
91efe9396b Start building against Spring LDAP 3.2.1 snapshots
See gh-38699
2023-12-06 20:21:29 +00:00
Andy Wilkinson
da4f2a4679 Start building against Spring Integration 6.2.1 snapshots
See gh-38698
2023-12-06 20:21:24 +00:00
Andy Wilkinson
174813c341 Start building against Spring Data Bom 2023.1.1 snapshots
See gh-38697
2023-12-06 20:21:19 +00:00
Andy Wilkinson
5e40739997 Start building against Spring Authorization Server 1.2.1 snapshots
See gh-38696
2023-12-06 20:21:14 +00:00
Andy Wilkinson
4fc2082972 Start building against Reactor Bom 2023.0.1 snapshots
See gh-38695
2023-12-06 20:21:09 +00:00
Andy Wilkinson
2a839788cc Start building against Micrometer Tracing 1.2.1 snapshots
See gh-38694
2023-12-06 20:21:04 +00:00
Andy Wilkinson
7fb0f52d7f Start building against Micrometer 1.12.1 snapshots
See gh-38693
2023-12-06 20:20:59 +00:00
Andy Wilkinson
5c0ecbaf49 Merge branch '3.1.x' 2023-12-06 19:53:18 +00:00
Andy Wilkinson
fb8043a31f Start building against Spring Session 3.1.4 snapshots
See gh-38683
2023-12-06 15:18:55 +00:00
Andy Wilkinson
af469abb88 Start building against Spring Security 6.1.6 snapshots
See gh-38682
2023-12-06 15:18:50 +00:00
Andy Wilkinson
7f53a21328 Start building against Spring LDAP 3.1.3 snapshots
See gh-38681
2023-12-06 15:18:45 +00:00
Andy Wilkinson
486c34b412 Start building against Spring Framework 6.0.15 snapshots
See gh-38680
2023-12-06 15:18:40 +00:00
Andy Wilkinson
4ff5be4619 Start building against Spring Data Bom 2023.0.7 snapshots
See gh-38679
2023-12-06 15:18:36 +00:00
Andy Wilkinson
fb9b6833fc Start building against Spring Authorization Server 1.1.4 snapshots
See gh-38678
2023-12-06 15:18:31 +00:00
Andy Wilkinson
7de7aaa375 Start building against Reactor Bom 2022.0.14 snapshots
See gh-38677
2023-12-06 15:18:26 +00:00
Andy Wilkinson
7aed70b0bd Start building against Micrometer Tracing 1.1.8 snapshots
See gh-38676
2023-12-06 15:18:21 +00:00
Andy Wilkinson
57a7f210cd Start building against Micrometer 1.11.7 snapshots
See gh-38675
2023-12-06 15:18:16 +00:00
Andy Wilkinson
6dff3c5978 Adapt to change in Framework's disconnected client detection
See gh-38666
2023-12-06 14:18:40 +00:00
Moritz Halbritter
ad5b844e1f Fix checkstyle issues
MissingParametersFailureAnalyzer looks like it has been commited by
accident.
2023-12-06 11:22:54 +01:00
Phillip Webb
b5de38787c Restore Session.Cookie class for binary back-compatibility
Fixes gh-38589
2023-12-05 15:00:26 -08:00