Repository navigation
Migrate to Spring Boot 3.5 (Spring 6, Hibernate 6, Jakarta EE) - #284
Conversation
… SDK v2 Co-Authored-By: jason.han <hanhuijun@gmail.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: jason.han <hanhuijun@gmail.com>
There was a problem hiding this comment.
Devin Review found 1 finding. Devin automatically fixed it.
Fixed by Devin (1)
- Unclosed S3 clients after initialization failures — When the store is unreachable or bucket creation fails, each request built and abandoned a client; the client is now closed before rethrowing.
|
Browser-tested 9040cb0 against a fresh local Elasticsearch stack. Swagger UI and JWT flow
Open documentation issue, not attributed Expanding Whether this is new could not be established: a jar built from
|
…I document Co-Authored-By: jason.han <hanhuijun@gmail.com>
|
Retested Swagger UI on ffc9dd5 against the local Elasticsearch-backed stack; the running jar's hash matched the freshly built revision. ElementVersion schema fix — passed
JWT and parameter-filtering regressions — passedSwagger loads; UI login issues a JWT and bearerToken authorization works.
|
|
Browser-tested View Editor 5.0.0 ( What worksWith
Caveats
|
…ials provider Co-Authored-By: jason.han <hanhuijun@gmail.com>
Summary
Moves MMS from Spring Boot 2.7.18 / Spring 5 to Spring Boot 3.5.16 / Spring 6 to clear the Trivy findings on the boot jar that have no fix on the 2.7 line. No intended behavior change.
Trivy 0.76.2 on the boot jar (CRITICAL,HIGH): 3 critical / 12 high before, 2 critical / 0 high after. The two remaining criticals are
spring-webmvc6.2.19 CVE-2026-47884 and CVE-2026-47890, whose only fixed version is 7.0.9 (Spring Boot 4); they cannot be cleared on Boot 3.What changed:
gradle.propertiesare gone. Four pins remain as patch levels ahead of the BOM, because Boot 3.5.16 ships versions Trivy flags:tomcatVersion,jacksonBomVersion,httpclient5Version,httpcore5Version(the last two also stop the BOM downgrading what the Elasticsearch client asks for).-parametersis now passed to everyJavaCompile. Spring 6 no longer reads parameter names from debug info, so without it every@PathVariable/@RequestParamwithout an explicit name fails with a 500.junit-vintage-engineon the JUnit Platform; the tests themselves are untouched.javax.{servlet,persistence,transaction,annotation,validation}->jakarta.*.rdb):MultiTenancyStrategyno longer exists; multi-tenancy is implied by the connection provider and tenant resolver, which are now typed<String>.SchemaExportmoved tohibernate-ant, added as a dependency.PostgreSQL10Dialectwas removed; defaults and example properties usePostgreSQLDialect.ExampleSecurityConfigexposes aSecurityFilterChainbean instead of extendingWebSecurityConfigurerAdapter, andAuthSecurityConfiguses the lambda DSL.springdoc-openapi-starter-webmvc-ui2.8.17;OpenAPIConfigsubclasses the renamedRequestService.verifyWith(...).build().parseSignedClaims(...)).S3Storage(sync client over the Apache HTTP client, path-style, checksums only when required so S3-compatible stores keep working).Upgrade notes for deployments:
application.propertiesthat setsspring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL10Dialectmust change it toorg.hibernate.dialect.PostgreSQLDialect(or drop the line); the old class no longer exists.HHH000511on it.@EnableGlobalMethodSecurityis deprecated in Security 6 but still used, to keep the permission evaluator wiring unchanged.Verification:
docker-compose.opensearch.yml. Locally the image was built from the Gradle-built boot jar with the same runtime stage as theDockerfile, because Maven Central rate-limited the in-container build./v3/api-docsand the Swagger UI respond../gradlew build -x testsucceeds../gradlew buildfails on the same seven tests that fail ondevelop: two inDefaultCommitServiceTest(crud) and five inTwcPermissionUtilsTest(twc,MultiValueMap must not be null). None are addressed here.🟢 Devin Review found nothing to fix · View findings · Follow Devin's work