dengc367 commented on code in PR #14355: URL: https://github.com/apache/gravitino/pull/14355#discussion_r4608699723
########## gradle/libs.versions.toml: ########## @@ -181,7 +181,9 @@ datanucleus-jdo = "3.2.0-m3" hudi = "0.15.0" google-auth = "1.28.0" aliyun-credentials = "0.3.12" -aliyun-sdk-oss = "3.10.2" +# Match Hadoop 3.3.6. Iceberg 1.11.0 expects OSS.deleteObject(String, String) +# to return VoidResult. SDK 3.10.2 returns void and fails to link on delete. +aliyun-sdk-oss = "3.13.0" Review Comment: Good catch — fixed. `aliyun-sdk-oss` 3.13.0 pulls `aliyun-java-sdk-core` 4.5.10 (3.10.2 pulled core 3.4.0), and 4.5.10 declares `ini4j` 0.5.4. Iceberg's `DefaultAliyunClientFactory` only creates OSS clients with RRSA OIDC credentials, a static key, or a static key plus session token — it never uses the core SDK's local profile credentials provider, which is the only ini4j consumer. So I excluded `org.ini4j:ini4j` from `libs.aliyun.sdk.oss` in `bundles/iceberg-aliyun-bundle/build.gradle.kts`. Verified: `dependencyInsight --configuration runtimeClasspath --dependency ini4j` finds nothing, the rebuilt shaded jar contains no `org/ini4j` classes (it still packages `com/aliyun/oss` and `VoidResult`), and `spotlessCheck` + `test` pass. I left `.github/trivy/trivyignore.yaml` unchanged since the #14777 entry is a global exemption and this change only removes the new occurrence. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
