Skip to content

Upgrade to Spring Boot 4.1.2, Spring Security 7.1.2 and Elide 7.2.0, plus dependency refresh - #143

Open
rpoet-jh wants to merge 1 commit into
mainfrom
rdp-deps-upgrade
Open

rpoet-jh wants to merge 1 commit into
mainfrom
rdp-deps-upgrade

Conversation

@rpoet-jh

Copy link
Copy Markdown
Contributor

Why

Spring Boot 3.5.x left open-source support on 30 June 2026, and 4.0 follows on 31 December 2026, so this moves to 4.1.x. Elide 7.2.0 is the release built for Boot 4.1.0.

See pom.xml versions for other dependency updates.

POM changes needed by Boot 4

  • Spring Security pin removed. The spring-security-bom pin (6.5.9, added for CVE-2026-22732) is no longer needed. Spring Security now comes from Boot (7.1.2), which is newer than the 7.0.4 fix release.
  • SAML. spring-security-saml2-service-provider was replaced with spring-boot-starter-security-saml2. Boot 4 moved the SAML autoconfiguration into its own module. Without it, no RelyingPartyRegistrationRepository bean was created.
  • Liquibase. liquibase-core was replaced with spring-boot-starter-liquibase. The autoconfiguration moved to a separate module in Boot 4. With only liquibase-core, the changelog is not run.
  • Testcontainers. The artifacts were renamed to testcontainers-localstack and testcontainers-junit-jupiter.
  • rest-assured. Boot 4 no longer manages it, so a rest-assured-bom 6.3.0 import was added.
  • commons-logging. Spring Framework 7 dropped spring-jcl and depends on commons-logging, which the parent enforcer bans.
    • The exclusion was added on spring-boot-starter-test.
    • jcl-over-slf4j (runtime) provides the org.apache.commons.logging classes.
  • Artemis. The two org.apache.activemq Artemis pins (2.53.0, added for CVE-2026-27446) were removed because Boot's BOM manages the same version, 2.53.0. The commons-logging exclusion moved onto a direct org.apache.artemis:artemis-jakarta-server dependency, which also removes the relocated-groupId warning.
  • Convergence pins. commons-collections4 4.6.0 and joou-java-6 0.9.5 were added.
  • Unneeded Pins removed. Five were unnecessary: httpclient, commons-compress, antlr4-runtime, commons-beanutils and protobuf-java. The resolved versions are the same.

Code changes

  • Main: EntityScan moved to org.springframework.boot.persistence.autoconfigure.
  • SecurityConfiguration:
    • OpenSaml4AuthenticationRequestResolver became OpenSaml5AuthenticationRequestResolver.
    • AntPathRequestMatcher became PathPatternRequestMatcher (removed in Spring Security 7).
  • StorageProperties.getBucketName() now uses Optional.ofNullable. Boot 4's binder reads the getter, and Optional.of threw a NullPointerException when no S3 bucket is set. StorageConfiguration already handles the empty case.
  • The LocalStack test image was upgraded from 3.8.1 to 4.14.0. LocalStack 4.14.0 is the last release that doesn't require an auth token. Newer calendar-versioned images need LOCALSTACK_AUTH_TOKEN.
  • Dockerfile: The eclipse-temurin bump (17.0.18_8 → 17.0.21_9).

Tests

  • Added SecurityRequestMatcherTest (14 cases). It covers the CSRF rule on /doi/** GET requests, including trailing-slash variants and a path that only starts with /doi, and the CSP header that is set only under /app/**. It runs on H2 and needs no Docker.
  • mvn clean test passed with 209 tests (0 failures, 4 skipped).

Review notes

  • The PathPatternRequestMatcher swap should keep the same behavior for /doi/** and /app/**, but trailing-slash handling is the main thing to watch.
  • Several jumps are large: checker-qual 3 → 4, Spring Cloud AWS 3 → 4, and Jackson 3 and Hibernate 7 via Boot and Elide. The compile and unit tests pass. Runtime behavior against real AWS services and PostgreSQL is not covered.

@rpoet-jh
rpoet-jh requested a review from markpatton November 17, 2026 20:03
@rpoet-jh rpoet-jh self-assigned this Nov 17, 2026
@rpoet-jh rpoet-jh closed this Nov 17, 2026
@rpoet-jh rpoet-jh reopened this Nov 17, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant