Skip to content

fix: align Yiban SSL dependency on mainline feature branch - #2

Merged
loong10k merged 6 commits into
mainfrom
feature/REQ-20261118-wandl-yiban-ssl-coordinate
Nov 19, 2026
Merged

loong10k merged 6 commits into
mainfrom
feature/REQ-20261118-wandl-yiban-ssl-coordinate

Conversation

@loong10k

@loong10k loong10k commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes legacy PR #1 by carrying its not-yet-commons-ssl coordinate fix from the historical master lineage onto current main through the required feature/REQ-* branch. The published coordinate used here is ca.juliusdavies:not-yet-commons-ssl:0.3.9; both dependency declarations are aligned.

Validation: git diff --check passed. JDK 8 mvn -B -U clean verify resolved the SSL dependency but stopped before compilation because io.github.easy4j:security-biz-spring-boot-starter:1.0.9-SNAPSHOT is absent from the configured Aliyun snapshot repository and cn.yiban.open:java-sdk:1.6.0 is absent from the configured release/Central repositories. The latter is listed under the separate HiWePy Nexus, whose artifact endpoint is currently unavailable from this environment. No dependency was replaced with com.github.hiwepy or fabricated locally.

Keep this PR draft until both upstream artifacts resolve and full JDK 8 build, tests, and feature → test → main promotion pass. This PR does not claim those gates are complete.

Boot 2.3 compatibility findings

The tracked YBApi_sdk_java.zip contains YBOpenApi.jar (SHA-256 9dfce10cbca8776f2b6fa144d770385b94c5054bbc01544fe1983df05c67486c). Its manifest does not identify Maven release 1.6.0. The local compatibility probe used the separate version 20150820-local and did not publish it.

With actual Easy4J Security Biz 2.3.x source at 23ca30d, the old Boot-managed Spring Security version cannot load WebSecurityCustomizer. Aligning the probe to Security Biz's Spring Security 5.8.14 exposes a moved locale filter package and a Java return-type conflict: the Yiban exception's public String getCode() conflicts with the newer parent class's int getCode().

A local Java 8 probe changed the exception superclass to Spring Security's AuthenticationServiceException, preserved the vendor code and legacy getAuthCode() method, and verified that both built-in response handlers retain the third-party service response code. One test passed. This alternative changes the public superclass and needs a compatibility decision before adoption. Security Biz 2.3.x compiled but failed its own existing 90% JaCoCo gate at about 3%; only its local diagnostic JAR was used. The official SDK coordinate, dependency publication, and normal PR verification remain open.

Official November 2026 SDK verification

The Yiban Open Platform SDK page lists Java SDK 2.26.1103 with JDK 11+ and Tomcat 10+ or a Jakarta Servlet container. Downloaded the linked archive and matched the site's SHA-1 dcd314496ab829904ea09f5ac184d20eeb7dcc00. Its SHA-256 is 98935c987f95581a97870262f3f0d401c720968f4b0090e88d81ff0cbddaa595.

The archive contains five Java source files and a README describing an OAuth demonstration. The sources import jakarta.servlet and JDK 11's java.net.http. The archive contains neither a JAR nor Maven metadata for cn.yiban.open:java-sdk:1.6.0. The current JDK 8 / Boot 2.3 branch still needs a verifiable legacy SDK artifact and a resolvable Easy4j Security Biz dependency for clean Maven verification. Migrating to the new OAuth flow requires a separate compatibility decision.

Maintained feature branches

The nine maintained lines that declare this SSL dependency now have candidate commits based on their respective maintenance heads. The committed POMs match the Maven model and validation inputs byte for byte. Each explicitly declares the Easy4J group, corrects both SSL declarations, and uses the line's existing HTTP client version for httpmime where it previously had no version.

Maintenance line Feature branch tip JDK used for Maven validation
2.3.x 8981646 8
2.7.x 1f22cda 8
3.0.x 5e23b07 17
3.1.x cae200b 17
3.2.x c3d9534 17
3.3.x 0a08cc4 17
3.4.x 6faf8b0 17
3.5.x 1624cda 17
4.0.x a418826 21

Maven model resolution and validate passed for these POMs. The full verification runs stopped at dependency resolution. All nine require the legacy Yiban SDK, and only the Boot 2.7 and 4.0 lines resolved their declared Security Biz snapshot in the verification run. The Boot 4.1 line no longer declares this SSL library. The branch refs above are candidate fixes awaiting clean verification and promotion.

@loong10k

Copy link
Copy Markdown
Collaborator Author

The current PR still has two independent dependency blockers. A fresh authenticated Aliyun lookup could not resolve io.github.easy4j:security-biz-spring-boot-starter:1.0.9-SNAPSHOT. The available official Yiban Java download contains Servlet OAuth examples, and it does not contain the cn.yiban.open:java-sdk:1.6.0 JAR or the Authorize and User implementations used by this starter. The sibling Spring Security component currently contains stubs for those SDK APIs, so it cannot replace the vendor dependency for verification. Keep this PR draft until the verified dependencies and Java 8 build are available.

@loong10k
loong10k marked this pull request as ready for review November 19, 2026 05:43
@loong10k
loong10k merged commit a88c03f into main Nov 19, 2026
2 checks passed
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