-
Notifications
You must be signed in to change notification settings - Fork 40.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SpringBootMockResolver causes AopTestUtils.getUltimateTargetObject to recurse until the stack overflows when it calls it with Spring Security's authentication manager bean #32632
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Oct 7, 2022
wilkinsona
changed the title
Avoid unwrapping proxy backed by non-static TargetSource in SpringBootMockResolver
AopTestUtils.getUltimateTargetObject recurses until the stack overflows when called with Spring Security's authentication manager bean
Oct 7, 2022
wilkinsona
changed the title
AopTestUtils.getUltimateTargetObject recurses until the stack overflows when called with Spring Security's authentication manager bean
SpringBootMockResolver causes AopTestUtils.getUltimateTargetObject to recurse until the stack overflows when it calls it with Spring Security's authentication manager bean
Oct 7, 2022
wilkinsona
added
type: bug
A general bug
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Oct 7, 2022
krenson
pushed a commit
to krenson/test-push
that referenced
this issue
Mar 15, 2023
…ot-starter-parent from 2.7.7 to 2.7.8 (patch) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | patch | `2.7.7` -> `2.7.8` | --- ### Release Notes <details> <summary>spring-projects/spring-boot</summary> ### [`v2.7.8`](https://github.com/spring-projects/spring-boot/releases/tag/v2.7.8) [Compare Source](spring-projects/spring-boot@v2.7.7...v2.7.8) #### ⭐ Noteworthy - The coordinates of the MySQL JDBC driver have [changed from `mysql:mysql-connector-java` to `com.mysql:mysql-connector-j`](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#mysql-jdbc-driver). #### 🐞 Bug Fixes - Devtools sets non-existent property spring.reactor.debug [#​33858](spring-projects/spring-boot#33858) - Failing calls to reactive health indicators are not logged [#​33774](spring-projects/spring-boot#33774) - Failure analysis of NoUniqueBeanDefinitionException reports "defined in null" when bean definition has no resource description [#​33765](spring-projects/spring-boot#33765) - NPE in RabbitProperties when user is given, but password not [#​33752](spring-projects/spring-boot#33752) - SDKMAN should not use repo.spring.io for releases [#​33708](spring-projects/spring-boot#33708) - Homebrew and Scoop should not use repo.spring.io for releases [#​33702](spring-projects/spring-boot#33702) - EndpointRequestMatcher should have a toString method [#​33690](spring-projects/spring-boot#33690) - It is not possible to provide a custom TransactionProvider bean for JOOQ [#​32899](spring-projects/spring-boot#32899) - SpringBootMockResolver causes AopTestUtils.getUltimateTargetObject to recurse until the stack overflows when it calls it with Spring Security's authentication manager bean [#​32632](spring-projects/spring-boot#32632) - Inconsistent discovery of parameter names for selectors in custom actuator endpoints [#​31240](spring-projects/spring-boot#31240) - `@DeprecatedConfigurationProperty` has no effect when declared on a record component's accessor method [#​29526](spring-projects/spring-boot#29526) - Headless mode is forced when banner.\* file is present. [#​28803](spring-projects/spring-boot#28803) - Diagnostics are poor when the JMX port used by the Maven start goal is in use [#​24044](spring-projects/spring-boot#24044) #### 📔 Documentation - Replace "via" in documentat...
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
As mentioned in spring-projects/spring-framework#29215 (comment), please consider introducing a custom, defensive variant of
AopTestUtils.getUltimateTargetObject()
inSpringBootMockResolver
to avoid attempting to unwrap proxies backed by a non-staticTargetSource
.The text was updated successfully, but these errors were encountered: