Repository navigation
fix: align Yiban SSL dependency on mainline feature branch - #2
Merged
Merged
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes legacy PR #1 by carrying its
not-yet-commons-sslcoordinate fix from the historicalmasterlineage onto currentmainthrough the requiredfeature/REQ-*branch. The published coordinate used here isca.juliusdavies:not-yet-commons-ssl:0.3.9; both dependency declarations are aligned.Validation:
git diff --checkpassed. JDK 8mvn -B -U clean verifyresolved the SSL dependency but stopped before compilation becauseio.github.easy4j:security-biz-spring-boot-starter:1.0.9-SNAPSHOTis absent from the configured Aliyun snapshot repository andcn.yiban.open:java-sdk:1.6.0is 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 withcom.github.hiwepyor 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.zipcontainsYBOpenApi.jar(SHA-2569dfce10cbca8776f2b6fa144d770385b94c5054bbc01544fe1983df05c67486c). Its manifest does not identify Maven release 1.6.0. The local compatibility probe used the separate version20150820-localand did not publish it.With actual Easy4J Security Biz 2.3.x source at
23ca30d, the old Boot-managed Spring Security version cannot loadWebSecurityCustomizer. 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 publicString getCode()conflicts with the newer parent class'sint getCode().A local Java 8 probe changed the exception superclass to Spring Security's
AuthenticationServiceException, preserved the vendor code and legacygetAuthCode()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.1103with JDK 11+ and Tomcat 10+ or a Jakarta Servlet container. Downloaded the linked archive and matched the site's SHA-1dcd314496ab829904ea09f5ac184d20eeb7dcc00. Its SHA-256 is98935c987f95581a97870262f3f0d401c720968f4b0090e88d81ff0cbddaa595.The archive contains five Java source files and a README describing an OAuth demonstration. The sources import
jakarta.servletand JDK 11'sjava.net.http. The archive contains neither a JAR nor Maven metadata forcn.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
httpmimewhere it previously had no version.2.3.x89816462.7.x1f22cda3.0.x5e23b073.1.xcae200b3.2.xc3d95343.3.x0a08cc43.4.x6faf8b03.5.x1624cda4.0.xa418826Maven model resolution and
validatepassed 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.