Commit Graph

27364 Commits

Author SHA1 Message Date
Stéphane Nicoll 22281d36b0 Release v6.0.23 2024-08-14 11:54:05 +02:00
rstoyanchev 8d16a50907 Efficient ETag parsing
Closes gh-33372
2024-08-14 07:53:23 +03:00
Juergen Hoeller ab161ca796 Upgrade to Netty 4.1.112 and Undertow 2.3.15 2024-08-13 19:34:50 +02:00
Juergen Hoeller b5377ee9cf Polishing 2024-08-13 19:34:30 +02:00
Stéphane Nicoll eff1ca92f0 Upgrade to Reactor 2022.0.22
Closes gh-33324
2024-08-13 17:24:20 +02:00
Sam Brannen 79c7bfdbad Introduce withAssignmentDisabled() option for SimpleEvaluationContext
To support additional use cases, this commit introduces a
withAssignmentDisabled() method in the Builder for
SimpleEvaluationContext.

See gh-33319
Closes gh-33321

(cherry picked from commit e74406afd0)
2024-08-13 17:49:44 +03:00
Riley Park f78b09fddf Fix incorrect weak ETag assertion
Closes gh-33376
2024-08-13 17:02:11 +03:00
Stéphane Nicoll b7ca746493 Sync GHA setup 2024-08-09 16:05:42 +02:00
Stéphane Nicoll 6c062399ea Start building against Reactor 2022.0.22 snapshots
See gh-33324
2024-08-07 09:55:31 +02:00
Sam Brannen e1ab306506 Enforce read-only semantics in SpEL's SimpleEvaluationContext
SimpleEvaluationContext.forReadOnlyDataBinding() documents that it
creates a SimpleEvaluationContext for read-only access to public
properties; however, prior to this commit write access was not disabled
for indexed structures when using the assignment operator, the
increment operator, or the decrement operator.

In order to better align with the documented contract for
forReadOnlyDataBinding(), this commit makes it possible to disable
assignment in general in order to enforce read-only semantics for
SpEL's SimpleEvaluationContext when created via the
forReadOnlyDataBinding() factory method. Specifically:

- This commit introduces a new isAssignmentEnabled() "default" method
  in the EvaluationContext API, which returns true by default.

- SimpleEvaluationContext overrides isAssignmentEnabled(), returning
  false if the context was created via the forReadOnlyDataBinding()
  factory method.

- The Assign, OpDec, and OpInc AST nodes -- representing the assignment
  (=), increment (++), and decrement (--) operators, respectively --
  now throw a SpelEvaluationException if assignment is disabled for the
  current EvaluationContext.

See gh-33319
Closes gh-33321

(cherry picked from commit 0127de5a7a)
2024-08-06 14:12:03 +03:00
Sam Brannen 2165b1651b Throw exception for failure to set property as index in SpEL
Prior to this commit, the Indexer in the Spring Expression Language
(SpEL) silently ignored a failure to set a property via the indexed
property syntax (['<property name>'] = <new value>) – for example, if
property write access was disabled in the EvaluationContext.

This commit addresses this issue by properly throwing a
SpelEvaluationException in PropertyIndexingValueRef.setValue(Object) if
the property could not be set.

See gh-33310
Closes gh-33311

(cherry picked from commit c57c2272a1)
2024-08-05 14:27:03 +03:00
Sam Brannen bf72e92145 Polishing 2024-08-05 14:25:17 +03:00
Sam Brannen 3e7372491c Support conversion from primitive array to Object[] in ConversionService
Prior to this commit, the ConversionService failed to convert a primitive
array (such as int[]) to an Object[] due to an error in the logic in
ArrayToArrayConverter.

This commit addresses this by augmenting the "can bypass conversion"
check in ArrayToArrayConverter to ensure that the supplied source object
is an instance of the target type (i.e., that the source array can be
cast to the target type array without conversion).

Closes gh-33212

(cherry picked from commit cb6a5baac5)
2024-08-05 10:23:29 +03:00
Sam Brannen e11a419cc3 Revert "Support single String argument for varargs invocations in SpEL"
This reverts commit d33f66d9b5.

See gh-33013
See gh-33189
2024-08-04 16:43:07 +03:00
Sam Brannen d33f66d9b5 Support single String argument for varargs invocations in SpEL
Prior to this commit, the Spring Expression Language (SpEL) incorrectly
split single String arguments by comma for Object... varargs method and
constructor invocations.

This commit addresses this by checking if the single argument type is
already "assignable" to the varargs component type instead of "equal"
to the varargs component type.

See gh-33013
Closes gh-33189
2024-07-26 17:46:19 +03:00
Stéphane Nicoll 8da2963644 Remove useless permissions on build-and-deploy-snapshot workflow
Closes gh-33239
2024-07-19 11:47:06 +02:00
Stéphane Nicoll 9a11c12740 Upgrade to Gradle 8.9
Closes gh-33215
2024-07-14 11:13:35 +02:00
Stéphane Nicoll 743c8f755b Add missing artifact properties for staging
This commit makes sure that docs artifacts have their attributes set
for staging as well. Previously they were not and deployment of Javadoc
did not occur.

Closes gh-33207
2024-07-12 08:57:19 +02:00
Stéphane Nicoll 0376ebeaf3 Remove concourse configuration now that CI is using GitHub Actions 2024-07-11 16:58:01 +02:00
Stéphane Nicoll a2a793e324 Release from GitHub Actions
Closes gh-33201
2024-07-11 16:54:40 +02:00
Juergen Hoeller fd7e7633d4 Polishing 2024-07-10 15:45:02 +02:00
Stéphane Nicoll be7029c35d Retain previous factory method in case of nested invocation with AOT
This commit harmonizes the invocation of a bean supplier with what
SimpleInstantiationStrategy does. Previously, the current factory method
was set to `null` once the invocation completes. This did not take
into account recursive scenarios where an instance supplier triggers
another instance supplier.

For consistency, the thread local is removed now if we attempt to set
the current method to null. SimpleInstantiationStrategy itself uses
the shortcut to align the code as much as possible.

Closes gh-33185
2024-07-10 12:40:24 +02:00
Juergen Hoeller 84efba682d Upgrade to Groovy 4.0.22, Jetty 11.0.22, Undertow 2.3.14
Includes downgrade to Awaitility 4.2.0 (aligned with 6.1.x branch)
2024-07-08 23:25:34 +02:00
Stéphane Nicoll e66be91005 Backport "Harmonize CI configuration"
This commit applies the harmonization changes in eacfd77 whilst keeping
the doc attributes specific changes to 6.0.x
2024-07-05 10:05:04 +02:00
Stéphane Nicoll c7fd5c9c34 Upgrade to Gradle 8.8
Closes gh-33147
2024-07-04 10:31:50 +02:00
Juergen Hoeller 09123def57 Detect ajc markers in superclasses as well (for weaving check)
Closes gh-33113

(cherry picked from commit 100da83913)
2024-07-03 17:12:08 +02:00
Juergen Hoeller 069d0819dd Apply fallback resolution for non-hierarchical URIs such as "file:."
Includes meaningful exception message for file system resolution.

Closes gh-33124

(cherry picked from commit daea3f0eae)
2024-07-03 16:43:14 +02:00
Brian Clozel a352d884c9 Re-enable async dispatches in Observation Filter
Prior to this commit, the fix for gh-32730 disabled the involvment of
the osbervation filter for async dispatches. Instead of relying on ASYNC
dispatches to close the observation for async requests, this is now
using an async listener instead: async dispatches are not guaranteed to
happen once the async request is handled.

This change caused another side-effect: because async dispatches are not
considered anymore by this filter, the observation scope is not
reinstated for async dispatches. For example, `ResponseBodyAdvice`
implementations do not have the observation scope opened during their
execution.

This commit re-enables async dispatches for this filter, but ensures
that observations are not closed during such dispatches as this will be
done by the async listener.

Fixes gh-33128
2024-07-01 11:49:42 +02:00
Stéphane Nicoll 3498a35377 Fix name of GitHub actions bot
See gh-gh-33077
2024-06-21 14:15:58 +02:00
Stéphane Nicoll 06fc5bc3ea Exclude GitHub Actions bot from changelog
Closes gh-33077
2024-06-20 14:17:02 +02:00
Brian Clozel f59b56c4c9 Use Sonatype S01 token in release pipeline 2024-06-18 19:28:28 +02:00
Juergen Hoeller 5a83fc8f86 Polishing 2024-06-17 19:07:04 +02:00
Juergen Hoeller db8d2d1626 Backported test for @Autowired @Bean method on configuration subclass
See gh-33030
2024-06-17 19:06:49 +02:00
Juergen Hoeller 12949becfc Correct and consistent event class names in constructor javadoc
Closes gh-33032

(cherry picked from commit e79a9a5bff)
2024-06-17 18:58:20 +02:00
Stéphane Nicoll debf571722 Fix typo
Closes gh-33054
2024-06-17 13:39:44 +02:00
github-actions[bot] f87b1bd6ce Update Antora Spring UI to v0.4.16 2024-06-17 10:06:47 +00:00
Stéphane Nicoll e17afed0fe Fix property name in Container Extension Points section
Closes gh-33038
2024-06-16 16:49:18 +02:00
Juergen Hoeller 77964374f9 Do not attempt to load pre-enhanced class for reloadable classes
Closes gh-33024

(cherry picked from commit 089e4e69f1)
2024-06-14 22:12:11 +02:00
Stéphane Nicoll 67686d776e Fix invalid character in Javadoc of BeanFactory 2024-06-13 14:10:00 +02:00
Spring Builds 2d83fca571 Next development version (v6.0.23-SNAPSHOT) 2024-06-13 09:24:34 +00:00
Juergen Hoeller f285df692c Upgrade to SLF4J 2.0.13, JRuby 9.4.7, Awaitility 4.2.1 2024-06-12 14:42:49 +02:00
Juergen Hoeller b9eeee8341 Polishing 2024-06-12 13:59:33 +02:00
Juergen Hoeller df1f4812aa Upgrade to Netty 4.1.111 2024-06-12 13:58:57 +02:00
Juergen Hoeller 230848c8e5 Upgrade to spring-javaformat-checkstyle 0.0.42 2024-06-12 13:58:27 +02:00
Stéphane Nicoll eda868792a Upgrade to Reactor 2022.0.20
Closes gh-33008
2024-06-11 14:35:56 +02:00
Brian Clozel 76604db8da Stop observations for async requests in Servlet filter
Prior to this commit, the `ServerHttpObservationFilter` would support
async dispatches and would do the following:

1. start the observation
2. call the filter chain
3. if async has started, do nothing
4. if not in async mode, stop the observation

This behavior would effectively rely on Async implementations to
complete and dispatch the request back to the container for an async
dispatch. This is what Spring web frameworks do and guarantee.

Some implementations complete the async request but do not dispatch
back; as a result, observations could leak as they are never stopped.

This commit changes the support of async requests. The filter now
opts-out of async dispatches - the filter will not be called for those
anymore. Instead, if the application started async mode during the
initial container dispatch, the filter will register an AsyncListener to
be notified of the outcome of the async handling.

Fixes gh-32986
2024-06-07 19:00:26 +02:00
Sébastien Deleuze 38b7209dc5 Polishing
See gh-32984
2024-06-07 13:44:30 +02:00
Sébastien Deleuze df0764db5d Remove outdated copyright from index.adoc
Closes gh-32984
2024-06-07 13:38:25 +02:00
Sébastien Deleuze 1e2c4635a3 Exclude node_modules from NoHttp checks
Closes gh-32981
2024-06-07 11:49:43 +02:00
Juergen Hoeller 628b0504ec Skip ajc-compiled aspects for ajc-compiled target classes
Includes defensive ignoring of incompatible aspect types.

Closes gh-32970

(cherry picked from commit 0ea96b4806)
2024-06-06 21:01:42 +02:00