Repository navigation
fix: upgrade release dependencies and correct candidate licensing - #8292
Conversation
Aias00
left a comment
There was a problem hiding this comment.
Stream Agent analysis
PR #8292 claims a Java 17 / Spring Boot 3 dependency-line upgrade (Spring Boot 3.5.16, Spring Cloud 2025.0.3, Spring Framework 6.2.19, Shiro 2.2.1, Jackson 2.21.7, Tomcat 10.1.61, H2 2.3.232) to remediate fixed runtime vulnerabilities. Bounded evidence: head 8d762bf, checks build/e2e/CodeQL/rat_check success, pr_build skipped, zero reviews/comments, description truncated mid-sentence.
Evidence
- Head SHA 8d762bf; changed files include .github/scripts/collect-release-licenses.py and prepare-e2e-maven-repository*.sh.
- Check runs per bounded metadata: build, e2e, CodeQL, rat_check success; pr_build skipped (completed).
- No reviews or review_comments supplied; description truncated ('and the remai'); file patches are 300-unit excerpts, not full diffs.
Recommended next steps
- Request full dependency version delta, target branch (2.7.x vs main) and interaction with #8263/#8264/#8265/#8267/#8268.
- Confirm whether skipped pr_build is intentional and that CI covers the new .github/scripts changes before merge.
- Validate the claimed vulnerability fixes against the exact resolved versions and confirm RAT/license handling for the new release scripts.
Scope: bounded repository evidence; this is not a full code review or a claim that tests were run.
Task: 073be791-b4bb-4658-842b-e6a9b94f3e76 · Commit: 8d762bf5191478c5f5659d4308dc81f6c0b2d028
wy471x
left a comment
There was a problem hiding this comment.
Review: release dependency upgrade
I reviewed this as a code change and deliberately scoped out the generated content: the shenyu-dist/**/LICENSE*, NOTICE, licenses/*.txt and RELEASE-NOTES.md bodies (~23k of the 23.6k diff lines) are not reviewable by reading and are covered by your license-verifier CI job. Everything below is about the poms, the Java changes and the CI/scripts, which is where a regression would actually live.
Version alignment in the root pom.xml looks coherent for the headline set: Boot 3.5.16, Cloud 2025.0.3 imported as a BOM, Jackson 2.21.7 via an explicit jackson-bom import that overrides Boot's, Shiro 2.2.1, H2 2.3.232, K8s 19.0.3, MCP 0.18.3, OTel 1.67.0. The org.apache.shiro.codec.Base64 → org.apache.shiro.lang.codec.Base64 and SimplePrincipalMap → SimplePrincipalCollection edits are the correct Shiro 2.x API moves, and the jakarta classifier stays explicit on every Shiro artifact.
1. Trailing-slash URLs now 404 — an undocumented admin API break (blocking)
Three controller tests were retargeted:
PluginHandleControllerTest:POST /plugin-handle/→POST /plugin-handleShenyuDictControllerTest:POST /shenyu-dict/→POST /shenyu-dictSelectorControllerTest:GET /selector/{id}/→GET /selector/{id}
That is not a test cleanup. It is the framework upgrade removing trailing-slash matching, which changes the HTTP contract of the admin REST API: any client (the bundled dashboard, an external script, a stored integration) that still calls /plugin-handle/ now gets a 404 where it previously got 200. Adjusting the tests makes CI green while hiding the break.
Please do one of:
- restore the old matching (an explicit alias mapping or the equivalent
PathPatternParser/addPathMappings-style configuration for the HTTP security path currently used), or - state the break in
RELEASE-NOTES.mdand the upgrade guide alongside the H2 1.x migration you already documented, so consumers know to drop the trailing slash.
Silently changing tests is the one option that should not ship. Note that the H2 migration note is exactly the right model — it tells operators what to do.
2. docker-publish.yml keys "candidate" off a - in the tag name
push: ${{ github.ref_type != 'tag' || !contains(github.ref_name, '-') }}This is correct for v2.7.2-RC3 and for a final v2.7.2, so the intent is met. It is a fragile definition of "unvoted", though: anything that is a tag without a hyphen publishes :latest, and there is no other gate — a tag pushed before the vote would republish latest. A workflow_dispatch input, or matching an explicit -RC/-rc pattern, would make the rule say what it means.
Also worth confirming while you are here: on a candidate tag both image steps now get push: false, so the latest and ${{ env.TAG }} tags are computed but never published. That is what you want, but it means the candidate build no longer proves that the push credential and repository path work.
3. OkHttp is managed at 4.12.0 but the integrated tests still pin 4.9.3
shenyu-integrated-test/pom.xml declares its own okhttp3.version property at 4.9.3 and a direct <version>, so the root change does not reach it. The reactor therefore mixes 4.9.3 and 4.12.0. Given that the tracing change in this PR specifically moves to the JDK HTTP sender to avoid "mixing OkHttp 4 and 5", leaving a second OkHttp version in the integrated-test module is the same class of problem, one minor version down. Bump it or drop the local property.
4. restore-shenyu-local-repo.sh overwrites a tracked file based on $PWD
project_dir="${3:-${PWD}}"
...
python3 - "${artifact_dir}/maven-wrapper.jar" "${project_dir}/.mvn/wrapper/maven-wrapper.jar"With the third argument omitted — which is how ci.yml calls it — the destination is resolved from the caller's working directory, and the script writes a binary over .mvn/wrapper/maven-wrapper.jar with no check that project_dir is actually the repository root. Run from anywhere else, it silently clobbers whatever sits at that relative path. The Python validation of the source archive is good; the destination deserves the same care. Resolving from the script's own location ($(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)) removes the CWD dependency entirely and lets you drop the third argument.
5. Unrelated changes bundled into a dependency PR
A 23k-line diff is already at the limit of what a reviewer can verify; these edits have no obvious causal link to the upgrades and are not mentioned in the description:
PluginTransfer:Base64Utils→java.util.Base64(compile-compatible, no behavioural change, but unexplained)JwtUtils:153:StringUtils.EMPTY_STRING→""RedisConnectionFactory:GenericObjectPoolConfig<?>→GenericObjectPoolConfig<StatefulConnection<?, ?>>(needed for the Lettuce 6.6 typing, so worth naming in the description)TracingPluginConfiguration:120:builder.addSpanProcessor(processor.orElseGet(() -> SimpleSpanProcessor.create(SpanExporter.composite()))). This is a genuine behaviour change — spans are now recorded locally even with no exporter, which is the stated intent, but it adds a synchronousSimpleSpanProcessorto the hot path and the log line immediately below still reportsspans exported false. Confirm the log message and the sampler cost are what you want there.TracingGatewayIntegrationTestassertion loosened.
Each is small; together they are the difference between "reviewed the upgrade" and "skimmed it". A one-line justification per item in the description would let a reviewer sign off.
6. Nit
pom.xml sets both jackson-databind.version and jackson-bom.version to 2.21.7. Only the BOM import takes effect through dependencyManagement; two properties asserting the same version invites them drifting apart. Keep one, or add a comment saying the other exists for modules that reference it directly.
Scope of this review: source reading of the poms, the Java changes, the CI workflows and the shell scripts. I did not run a build or any test, and I did not attempt to verify the license/NOTICE inventory — your own verifier job covers that.
Aias00
left a comment
There was a problem hiding this comment.
Stream Agent analysis
FINAL synthesis of PR #8292 (head 659aa99) based on frozen cross-file review evidence. Child partitions and reductions reported NEEDS_CHANGES with anchored HIGH severity license/dependency metadata defects. all_parts_passed=false prevents FINAL PASS despite complete_diff and CI passed. Verdict NEEDS_CHANGES.
Evidence
- Frozen attachment: PR cross-file review with scope FINAL, all_parts_passed=false, complete_diff=true, CI passed=true
- Reduction nodes reduce-1-0 and reduce-1-1 both review_verdict NEEDS_CHANGES with anchored HIGH findings
- Child partitions part-3, part-21, part-33, part-45, part-53 reported concrete HIGH defects
Recommended next steps
- Fix pom.xml fastjson dependency to a valid coordinate (e.g., com.alibaba.fastjson2 or legacy fastjson 1.x)
- Correct license files: remove EPL misattribution, restore MIT text for jcl-over-slf4j, fix lettuce-core and Spring placeholder attributions
- Align NOTICE and bundled license versions with actual upgraded artifacts and re-run CI
Scope: captured diff and GitHub check metadata only; no local tests were executed.
Task: b476a186-6c8e-4e67-88f9-b03c276e1c58 · Commit: 659aa99a59c4ff54bea75c249ea911a0850e326a
Review verdict: NEEDS_CHANGES
SYNTHESIS/FINAL scope: aggregated child partition reviews show all_parts_passed=false. Two reduction nodes returned NEEDS_CHANGES with HIGH severity findings anchored to specific diff paths/lines (pom.xml fastjson coord, EPL bundled misattr, jcl-over-slf4j license substitution, NOTICE version mismatch, Spring placeholder). Per reduction rules, child NEEDS_CHANGES cannot be overridden with PASS; complete_diff=true and CI passed=true do not erase anchored blockers. Verdict NEEDS_CHANGES preserving child blockers.
Publication: REQUEST_CHANGES (VERIFIED_BLOCKING_FINDINGS)
- pom.xml:363 [RIGHT] com.alibaba:fastjson has no 2.x release; version ${fastjson.version}=2.0.66 is invalid and will fail Maven dependency resolution. Use com.alibaba.fastjson2 or a valid legacy version.
- shenyu-dist/shenyu-admin-dist/src/main/release-docs/licenses/LICENSE-bundled-dependencies.txt:1106 [RIGHT] The added Eclipse Public License v2.0 section includes a 'Bundled resources:' list that attributes numerous Apache-2.0 licensed jars to the EPL. This misstates license obligations and must be corrected to list only EPL-licensed components.
- shenyu-dist/shenyu-admin-dist/src/main/release-docs/licenses/LICENSE-jcl-over-slf4j.txt:1 [RIGHT] jcl-over-slf4j is licensed under MIT, not Apache License 2.0. Replacing its license text with the Apache 2.0 template is an inaccurate dependency license declaration and must be corrected.
- shenyu-dist/shenyu-bootstrap-dist/src/main/release-docs/licenses/LICENSE-bundled-dependencies.txt:4191 [RIGHT] Added 'SPRING FRAMEWORK ${version} SUBCOMPONENTS' contains unresolved Maven placeholder '${version}' and references outdated subcomponents ASM 4.0 and CGLIB 3.0, which do not match Spring Framework 6.2.19 bundling. Inaccurate license declaration.
Review details
PR #8292 cannot be approved in current state. The synthesized review identifies multiple HIGH severity blockers: invalid fastjson Maven coordinate, EPL bundled-dependencies misattribution, incorrect jcl-over-slf4j license text (MIT replaced by Apache), jackson-annotations NOTICE version mismatch, and unresolved Spring placeholder in license file. Please correct these compliance and build defects and re-run review.
Aias00
left a comment
There was a problem hiding this comment.
Stream Agent analysis
PR #8292 upgrades release dependencies (Spring Boot 3.5.16, Spring Cloud 2025.0.3, Spring Framework 6.2.19, Shiro 2.2.1, Jackson 2.21.7, Tomcat 10.1.61, H2 2.3.232) and regenerates license documentation. CI passes (93 checks, all success/skipped). The diff is ~1.49M characters; I have read approximately 679k characters (first ~45%) but have not completed full diff coverage. The unread portion contains remaining license file regenerations (bootstrap dist, source dist assembly) and any trailing code changes. No concrete blocking defects found in reviewed portion. However, incomplete diff coverage prevents a PASS verdict. Exact missing fact: remaining ~814k characters of the versioned diff (offsets ~679k to 1.49M) have not been inspected. Returning INCONCLUSIVE per whole-item contract requiring full diff coverage. No NEEDS_INPUT required; reviewer can resume reading from next_unread_offset. No blocking findings. Decision RECOMMENDATION (continue review). Category MAINTENANCE, Priority P2.
Evidence
- CI: 93 checks complete, all success/skipped, passed=true
- Diff progress: read ~679k/1.49M chars (offset 679k), has_more=true
- Reviewed portion: dependency upgrades, new release scripts, admin config changes, license regenerations — no defects observed
Recommended next steps
- Complete reading remaining diff pages from offset ~679k to end (~1.49M) to achieve full coverage.
Scope: captured diff and GitHub check metadata only; no local tests were executed.
Task: f199037c-3593-40ea-8a23-6b7775e4963b · Commit: 8c866da780393596cbf5d414af8c074e8127d2ae
Review verdict: INCONCLUSIVE
Full diff not yet read; ~814k characters (offsets ~679k–1.49M) remain unread. Per contract, INCONCLUSIVE required when pages remain unread. No concrete blocking defect found in reviewed portion.
Publication: COMMENT (INCONCLUSIVE_REVIEW)
Resolve CI and Maven repository restoration conflicts, preserving release dispatch correlation and candidate validation. Ensure the source release check also validates the Maven wrapper.
Aias00
left a comment
There was a problem hiding this comment.
Stream Agent analysis
Review of #8292 (dependency upgrade to Boot 3.5 / Shiro 2.2.1 / Jackson 2.21 and candidate-license corrections). CI failed; full diff not read.
Evidence
- CI complete=true, passed=false; failed checks: build, test_group(admin,shenyu-admin), compat_java21(plugin-proxy...), compat_java21(admin,shenyu-admin) per frozen evidence attachment.
- Sampled ~49k/1.47M chars: Shiro 2.2.1 migration (SimplePrincipalMap->SimplePrincipalCollection, RememberMe disabled, WebConfiguration @EnableWebSecurity/@EnableMethodSecurity), Boot 3.5 dependency BOM updates, maven-resources-plugin LICENSE/NOTICE injection, trailing-slash controller test fixes.
- Remaining ~1.42M chars of diff (mostly license/NOTICE text plus other poms/Java) were not read; full coverage not achieved.
Recommended next steps
- Read all remaining VERSIONED_DIFF pages (root pom.xml, other module poms, and unreviewed Java/test files) to complete coverage.
- Obtain the failing CI logs for build, test_group(admin) and compat_java21(admin/plugin-proxy) and anchor any defect to a specific diff line.
- Re-run CI after fixes and confirm upgrade compiles/passes before merge.
Scope: captured diff and GitHub check metadata only; no local tests were executed.
Task: 5bd35392-5b64-4d7c-864a-9cf4e23fdac9 · Commit: 074f67e5638e9105344c17d2bbce3681d819a7d0
Review verdict: INCONCLUSIVE
CI failed (build, admin test_group, java21 admin/plugin-proxy compat) so PASS is impossible; full diff coverage was not achieved (remaining pages unread) and no concrete HIGH/CRITICAL defect could be anchored to a specific diff path/line from the reviewed evidence.
Publication: COMMENT (REVIEW_EVIDENCE_MISSING)
|
/lgtm |
Problem and behavior
The 2.7.2 baseline contains publicly fixed runtime vulnerabilities. This follow-up to the five separately merged AI plugin fixes upgrades the Java 17 / Spring Boot 3 dependency line and adapts the affected APIs. It also addresses the RC3 review findings: signed Maven artifacts lacked the project LICENSE/NOTICE, eleven dependency license declarations were inaccurate, and the source distribution omitted the dashboard JS/CSS referenced by Admin.
Compatibility and retained advisories
Persistent H2 1.x databases need backup and export/import migration; RELEASE-NOTES.md documents FROM_1X and rollback. Admin also disables the unused RememberMe manager to prevent cookie identity restoration affected by CVE-2026-56130, with a regression assertion and migration note. Shiro 2.2.1 still matches that dependency advisory; the library fix requires Shiro 3. Four other retained CVEs require migration to Spring 7 / Spring AI 2 for public fixes; the previously accepted exceptions and two legacy Commons advisories remain documented. This change does not claim a clean vulnerability scan.
Validation
All builds and tests passed in remote GitHub Actions for the current PR head: all eleven Apache workflows, including Java 17/21, integration/E2E, SQL, CodeQL and image smoke checks. The exact RC4 release commit also passed the full candidate workflow, including an independent source-archive rebuild with the complete default reactor tests and ten repetitions each of the cluster counter and ZooKeeper integration regressions. The Java 21 real HTTP cancellation/peer-isolation test passed ten additional repetitions.
Candidate validation: https://github.com/apache/shenyu/actions/runs/41849119961
PR main CI: https://github.com/apache/shenyu/actions/runs/41849122281
RC4 tag Docker workflow: https://github.com/apache/shenyu/actions/runs/41860769455
Artifact checks passed for all 549 Maven JARs, both source archives, and the 294 Admin / 263 Bootstrap third-party JAR legal inventories. Both source archives match the release Git blobs byte for byte. The 2026-11-04 runtime audit covers the same 402 coordinates and retains nine advisory matches; five HIGH/CRITICAL matches correspond to the four documented compatibility exceptions. The Shiro matches remain disclosed despite the RememberMe configuration mitigation.
RC3 remains immutable. The RC4 candidate uses signed tag
v2.7.2-RC4at0b69b8df886be458e55a9e1794dc8c1cdae85921. Maven stagingorgapacheshenyu-1120is CLOSED; SVN distributions are at2.7.2-RC4, revision r89058. The independent download check passed for all 770 Maven primary files and nine SVN files, including hashes, PGP signatures against current ASF KEYS, signed tag provenance and packaged legal resources. Verification: https://github.com/yuluo-yx/shenyu/actions/runs/41865548565 No vote email is sent by this PR.