Skip to content

fix(deps): bump Spring to 7.0.9 - #32222

Merged
yan-3005 merged 1 commit into
2.0from
fix/2.0-spring-framework
Aug 28, 2026
Merged

yan-3005 merged 1 commit into
2.0from
fix/2.0-spring-framework

Conversation

@yan-3005

@yan-3005 yan-3005 commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Validation

  • mvn -pl openmetadata-service -am -DskipTests dependency:tree -Dincludes=org.springframework:spring-expression,org.springframework:spring-beans
  • Both spring-expression and spring-beans resolve to 7.0.9.
  • Remote diff changes only the root pom.xml.

Greptile Summary

Updates the shared Spring Framework version from 6.2.19 to 7.0.9 to remediate reported vulnerabilities.

  • Aligns spring-core, spring-beans, and spring-expression on Spring 7.0.9.
  • No concrete build, dependency-alignment, or runtime compatibility defect was identified.

Confidence Score: 5/5

The PR appears safe to merge with no concrete blocking or non-blocking defects identified.

The affected Spring artifacts resolve through the same shared version, the project’s Java baseline is compatible, and inspected Spring API usage does not rely on behavior removed by this upgrade.

Important Files Changed

Filename Overview
pom.xml Bumps the shared Spring version to 7.0.9; inspected consumers remain aligned and no actionable compatibility issue was established.

Reviews (1): Last reviewed commit: "fix(deps): bump Spring to 7.0.9" | Re-trigger Greptile

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Aug 28, 2026
@gitar-bot

gitar-bot Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Bumps Spring Framework from 6.2.19 to 7.0.9 to remediate CVE-2026-47886, CVE-2026-59282, and CVE-2026-59283. Dependency resolution confirms spring-expression and spring-beans align on 7.0.9 with no compatibility issues identified.

✅ 1 resolved
✅ Quality: Major Spring 6→7 bump validated only by dependency resolution

📄 pom.xml:117
This bumps a shared property across a major version (6.2.19 → 7.0.9), yet the described validation only ran dependency:tree to confirm artifacts resolve — it does not exercise compilation or runtime behavior. The upgraded spring-expression module powers the security-critical access-control policy evaluator (CompiledRule.java) and alert-rule evaluation (AlertUtil.java) via SpEL. SpEL evaluation semantics and safety limits have changed across Spring 6.x/7.x, so behavioral regressions here would silently affect authorization decisions. Before merging, run the SpEL-backed policy/alert test suites (e.g. RuleEvaluatorTest, ExpressionValidatorTest, AlertsRuleEvaluatorResourceIT) against 7.0.9 to confirm expression parsing/evaluation still behaves identically. The API usage itself was verified compatible with Spring 7.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

Comment thread pom.xml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit d4df96ca1a2101993ed09d477d2d4ae7a1c8ea85 in Playwright run 33153232156, attempt 1.

✅ 553 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 52m 22s

⏱️ Max setup 3m 7s · max shard execution 17m 4s · max shard-job elapsed before upload 20m 45s · reporting 4s

🌐 208.95 requests/attempt · 2.83 app boots/UI scenario · 12.11% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 208.95 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.83 per UI scenario (1622 boots / 574 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 130 0 0 0 0 0
✅ Shard chromium-02 129 0 0 0 0 0
✅ Shard chromium-03 140 0 0 0 0 0
✅ Shard data-asset-rules-01 61 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@yan-3005
yan-3005 enabled auto-merge (squash) August 28, 2026 10:16
@yan-3005
yan-3005 merged commit b70cd00 into 2.0 Aug 28, 2026
116 of 119 checks passed
@yan-3005
yan-3005 deleted the fix/2.0-spring-framework branch August 28, 2026 10:17
harsh-vador added a commit that referenced this pull request Aug 28, 2026
* fix(tests): profile in setUpClass so test_list_entity_profiles has data (#31882) (#32227)

pytest orders unittest TestCase methods alphabetically, so
test_list_entity_profiles runs first -- before test_profiler_workflow has
created any profile. The module sets TestLoader.sortTestMethodsUsing = None
to force definition order, but that only affects unittest's own loader:
pytest collects TestCase methods itself and ignores it. Verified against an
unmodified checkout -- collection still yields list_entity_profiles first
with that line in place, so it has never had any effect here.

The test still passed, because it asserts on a global 24h window across
every table rather than on data it owns, and hard-deleted tables used to
leak their profiler rows into that window. #31556 stopped that leak (issue
#27041), and the latent ordering bug surfaced: shard-2 now fails with
"0 not greater than 0" on every PR that actually runs the ingestion
integration matrix, blocking the merge queue. PRs that do not touch
ingestion skip the matrix and report green, which is why this looked
branch-specific rather than repo-wide.

Run the profiler in setUpClass, where fixture data belongs, so no test
depends on another's ordering. Drop the ineffective loader hack, and turn
the `if profiles_all.entities:` guard into an assertion -- that guard
swallowed an empty unfiltered listing and hid which of the two calls was
actually empty, which is the signal needed to diagnose this.

Co-authored-by: Himanshu Khairajani <46777429+Khairajani@users.noreply.github.com>

* fix(deps): bump Spring to 7.0.9 (#32222)

Remediates CVE-2026-47886, CVE-2026-59282, and CVE-2026-59283.

* chore(ui): make checkstyle green

---------

Co-authored-by: IceS2 <pablo.takara@getcollate.io>
Co-authored-by: Himanshu Khairajani <46777429+Khairajani@users.noreply.github.com>
Co-authored-by: Ram Narayan Balaji <81347100+yan-3005@users.noreply.github.com>
yan-3005 added a commit that referenced this pull request Sep 2, 2026
…32408)

* fix(deps): bump Spring to 7.0.9 (#32222)

Remediates CVE-2026-47886, CVE-2026-59282, and CVE-2026-59283.

* fix(security): bump Apache Jena and Fuseki to 6.2.0 (CVE-2026-61372) (#32274)

* fix(security): bump Apache Jena and Fuseki to 6.2.0 (CVE-2026-61372)

CVE-2026-61372 (high): Jena's SPARQL Update engine accepted LOAD source
URLs pointing at local resources, so an update could read data off the
machine running the engine. 6.2.0 restricts those URLs to http/ftp. The
CVE covers everything up to and including 6.1.0, and there is no 5.x
release carrying the fix (5.6.0 ends that line), so the only way off it
is the major bump.

Two halves to it:

- The client libraries openmetadata-service compiles against, all on the
  root pom's ${jena.version}: jena-core, jena-arq, jena-rdfconnection,
  jena-shacl (plus openmetadata-integration-tests).
- The Fuseki server images, which are where a LOAD actually reads local
  files. docker/rdf-store/Dockerfile and the quickstart variants
  downloaded Fuseki 5.6.0, and the compose files and docs tag the built
  image with that version. The base JRE goes 17 -> 21 because Fuseki 6.x
  is compiled with --release 21; on a 17 JRE it dies at startup with
  UnsupportedClassVersionError.

Jena 6 removed the deprecated single-argument RDFParser.fromString(String).
The seven call sites now pass the Lang alongside the string, which is the
documented replacement and drops the redundant .lang() call. That removal
is a binary incompatibility as well as a source one, so a downstream
consumer cannot pin Jena 6.2.0 without this commit.

Verified on the built 6.2.0 image (config.ttl + shiro.ini unchanged, TDB2
and the Lucene text index boot fine on JRE 21):

  LOAD <file:///tmp/x.ttl>                      -> 400 Not found  (fixed)
  LOAD <file:///tmp/x.ttl> INTO GRAPH <urn:g>   -> 204, triple loaded

So upstream's fix is partial. Fuseki 6.2.0 installs a per-request
StreamManager carrying only the http and ftp locators (Fuseki.java), but
UpdateEngineWorker.visit(UpdateLoad) only threads the action context
through the no-INTO branch — the INTO GRAPH branch calls
RDFDataMgr.open(source) with no context and so resolves through the global
StreamManager, which still has a file locator. Worth reporting upstream.
What closes that residual path for us is SparqlFederationGuard, which
already treats a LOAD source as a federation endpoint and denies it unless
the deployment allowlists it (federation is off by default); the Fuseki
update endpoint also requires the shiro `writer` role.

Also verified: openmetadata-service compiles clean on 6.2.0 and its RDF /
ontology / SPARQL / inference unit tests pass (924 tests, 0 failures).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* fix(rdf): initialize Jena before anything can touch the RDF vocabulary

The integration tests went red on Jena 6.2.0 with

  Could not initialize class org.apache.jena.graph.NodeFactory
  Could not initialize class org.apache.jena.rdf.model.impl.ModelCom

across GlossaryRdfImportIT, OntologyGovernanceIT, OntologyPackResourceIT,
RdfGlossaryGraphIT and GlossaryOntologyExportIT. Those are secondary errors:
the primary one happens once, at startup, and poisons every Jena class in the
JVM for the rest of its life.

Root cause is a class-initialization cycle new in Jena 6.2.0.
InitJenaCore.init() calls TypeMapper.reset(), which registers the RDF 1.2
datatypes by reading RDF.dtLangString, RDF.dtDirLangString, RDF.dtRDFJSON,
RDF.dtXMLLiteral and RDF.dtRDFHTML — static fields on
org.apache.jena.vocabulary.RDF. But RDF's own <clinit> calls RDF.resource(),
which reaches NodeFactory.<clinit>, which calls JenaSystem.init(). So if RDF is
the first Jena class the JVM initializes, JenaSystem.init() runs re-entrantly
on the same thread while RDF is half-built, TypeMapper reads those fields as
null, and registerDatatype() throws NPE inside a static initializer.

Reproduced with the module's own classpath, first Jena touch varied:

  vocabulary.RDF   -> FAILED NullPointerException   <- the trap
  vocabulary.RDFS  -> OK        ResourceFactory -> OK
  vocabulary.OWL   -> OK        ModelFactory    -> OK
  vocabulary.SKOS  -> OK        RDFDataMgr      -> OK
  vocabulary.XSD   -> OK        QueryFactory    -> OK

and against RdfResource's own startup path, which builds an
RdfEntityDiffService whether or not RDF is enabled:

  new RdfEntityDiffService(baseUri) first   -> FAILED (identical NPE)
  JenaSystem.init() first, then the same    -> OK

Jena 5.6.0 does not have the cycle: TypeMapper.reset() there does not read the
RDF vocabulary class, so every ordering worked and nothing had to initialize
Jena explicitly.

Fix: call JenaSystem.init() at the top of OpenMetadataApplication.run(), before
registerResources() constructs the RDF resources. It is idempotent, and once
the subsystem is up the vocabulary classes initialize in any order. Unit tests
were unaffected (924 pass either way) because their first Jena touch is a model
or a parser, never the RDF vocabulary.

Worth reporting upstream alongside the partial LOAD fix.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

(cherry picked from commit 49f4a79)

* fix(security): backport pac4j OIDC upgrade for 1.13

* style: format OIDC handler backport

---------

Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
@yan-3005 yan-3005 self-assigned this Nov 19, 2026

This branch was previously deployed

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

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants