This is an automated email from the ASF dual-hosted git repository.

jerryshao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new eedf4b1d8c [Cherry-pick to branch-2.0] [#14354] build(deps): Bump 
aliyun-sdk-oss to 3.13.0 (#14355) (#15071)
eedf4b1d8c is described below

commit eedf4b1d8c7cd9ce453b01c924491a2eb9704afd
Author: roryqi <[email protected]>
AuthorDate: Wed Nov 18 18:33:14 2026 +0800

    [Cherry-pick to branch-2.0] [#14354] build(deps): Bump aliyun-sdk-oss to 
3.13.0 (#14355) (#15071)
    
    **Cherry-pick Information:**
    - Original commit: f26ac1cd491bdcb3a11e6755ac7abcbba9e19163
    - Target branch: `branch-2.0`
    - Status: ✅ Clean cherry-pick (no conflicts)
    - Fork CI: runs in `roryqi/gravitino`; re-run it there or push to this
    PR branch
    
    Co-authored-by: dengc367 <[email protected]>
    Co-authored-by: liucunyu <[email protected]>
    Co-authored-by: mchades <[email protected]>
---
 bundles/iceberg-aliyun-bundle/build.gradle.kts | 8 +++++++-
 docs/flink-connector/flink-catalog-iceberg.md  | 8 +++++++-
 docs/spark-connector/spark-catalog-iceberg.md  | 7 ++++++-
 gradle/libs.versions.toml                      | 4 +++-
 4 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/bundles/iceberg-aliyun-bundle/build.gradle.kts 
b/bundles/iceberg-aliyun-bundle/build.gradle.kts
index fbedb6f95d..75882eea0a 100644
--- a/bundles/iceberg-aliyun-bundle/build.gradle.kts
+++ b/bundles/iceberg-aliyun-bundle/build.gradle.kts
@@ -29,7 +29,13 @@ dependencies {
   // and the published POM resolve the version in the catalog.
   implementation(libs.jettison)
   implementation(libs.aliyun.credentials.sdk)
-  implementation(libs.aliyun.sdk.oss)
+  implementation(libs.aliyun.sdk.oss) {
+    // aliyun-sdk-oss 3.13.0 pulls aliyun-java-sdk-core 4.5.10, which depends 
on ini4j 0.5.4.
+    // ini4j only backs the core SDK's local profile credentials provider, and 
OSSFileIO
+    // authenticates with a static key or a session token, so keep it out of 
the bundle
+    // (HIGH CVE-2022-41404, tracked in #14777).
+    exclude(group = "org.ini4j", module = "ini4j")
+  }
   // Aliyun oss SDK depends on this package, and JDK >= 9 requires manual add
   // 
https://www.alibabacloud.com/help/en/oss/developer-reference/java-installation?spm=a2c63.p38356.0.i1
   implementation(libs.sun.activation)
diff --git a/docs/flink-connector/flink-catalog-iceberg.md 
b/docs/flink-connector/flink-catalog-iceberg.md
index 45af4a2485..591839073a 100644
--- a/docs/flink-connector/flink-catalog-iceberg.md
+++ b/docs/flink-connector/flink-catalog-iceberg.md
@@ -132,4 +132,10 @@ For temporary credentials vended per table and refreshed 
automatically, use a `R
 
 ### OSS
 
-Additionally, you need download the [Aliyun OSS 
SDK](https://gosspublic.alicdn.com/sdks/java/aliyun_java_sdk_3.10.2.zip), and 
copy `aliyun-sdk-oss-3.10.2.jar`, `hamcrest-core-1.1.jar`, `jdom2-2.0.6.jar` to 
the Flink classpath.
+Additionally, download the Aliyun OSS SDK version that matches the Iceberg 
runtime from the table above
+([3.18.5](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.18.5/aliyun-sdk-oss-3.18.5.jar)
+for Iceberg 1.11.0 and 1.12.0, 
[3.10.2](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.10.2/aliyun-sdk-oss-3.10.2.jar)
+for Iceberg 1.10.2) together with its 
[jdom2](https://repo1.maven.org/maven2/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar)
+dependency, and put `aliyun-sdk-oss-<version>.jar` and `jdom2-2.0.6.1.jar` in 
the Flink `lib` directory.
+Iceberg 1.11.0 and later expect `OSS#deleteObject(String, String)` to return 
`VoidResult`, which is only
+true from SDK 3.12.0 onward; older SDKs fail with `NoSuchMethodError` on OSS 
deletes.
diff --git a/docs/spark-connector/spark-catalog-iceberg.md 
b/docs/spark-connector/spark-catalog-iceberg.md
index a08b993fb1..a6ec29c666 100644
--- a/docs/spark-connector/spark-catalog-iceberg.md
+++ b/docs/spark-connector/spark-catalog-iceberg.md
@@ -260,7 +260,12 @@ a `NoClassDefFoundError` that does not identify the 
missing bundle directly.
 
 ### OSS
 
-Please downloading the [Aliyun OSS 
SDK](https://gosspublic.alicdn.com/sdks/java/aliyun_java_sdk_3.10.2.zip) and 
copy `aliyun-sdk-oss-3.10.2.jar`, `hamcrest-core-1.1.jar`, `jdom2-2.0.6.jar` in 
the classpath of Spark.
+Download the [Aliyun OSS 
SDK](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.18.5/aliyun-sdk-oss-3.18.5.jar)
+version that matches the Iceberg runtime from the table above (3.18.5 for 
Iceberg 1.11.0), together with
+[jdom2](https://repo1.maven.org/maven2/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar),
 and place
+`aliyun-sdk-oss-3.18.5.jar` and `jdom2-2.0.6.1.jar` on the Spark driver and 
executor classpaths.
+Iceberg 1.11.0 expects `OSS#deleteObject(String, String)` to return 
`VoidResult`, which is only true
+from SDK 3.12.0 onward; with 3.10.2 every OSS delete fails with 
`NoSuchMethodError`.
 
 ### GCS
 
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 1b0e99f5d2..9a45098f2c 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -192,7 +192,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"
 tencentcloud-sdk-sts = "3.1.1239"
 openlineage = "1.29.0"
 jcstress = "0.8.15"

Reply via email to