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

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-paimon-webui.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c3c8cf  [Bugfix] Fix swapped OSS_ACCESS_KEY and OSS_SECRET_KEY (#165)
8c3c8cf is described below

commit 8c3c8cf0f07e36c4e9f14dbcc982b72fea0d8467
Author: zhoulii <[email protected]>
AuthorDate: Fri Jan 26 13:37:13 2024 +0800

    [Bugfix] Fix swapped OSS_ACCESS_KEY and OSS_SECRET_KEY (#165)
---
 .../java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java  | 4 ++--
 .../main/java/org/apache/paimon/web/api/common/CatalogProperties.java | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/paimon-web-api/src/main/java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java
 
b/paimon-web-api/src/main/java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java
index dca4651..edd5e91 100644
--- 
a/paimon-web-api/src/main/java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java
+++ 
b/paimon-web-api/src/main/java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java
@@ -46,8 +46,8 @@ public class PaimonServiceFactory {
             options.set(CatalogProperties.S3_SECRET_KEY, 
catalogOptions.get("secretKey"));
         } else if ("oss".equalsIgnoreCase(fileSystemType)) {
             options.set(CatalogProperties.OSS_ENDPOINT, 
catalogOptions.get("endpoint"));
-            options.set(CatalogProperties.OSS_ACCESS_KEY, 
catalogOptions.get("accessKey"));
-            options.set(CatalogProperties.OSS_SECRET_KEY, 
catalogOptions.get("secretKey"));
+            options.set(CatalogProperties.OSS_ACCESS_KEY_ID, 
catalogOptions.get("accessKey"));
+            options.set(CatalogProperties.OSS_ACCESS_KEY_SECRET, 
catalogOptions.get("secretKey"));
         }
         CatalogContext context = CatalogContext.create(options);
         return new PaimonService(CatalogFactory.createCatalog(context), name);
diff --git 
a/paimon-web-api/src/main/java/org/apache/paimon/web/api/common/CatalogProperties.java
 
b/paimon-web-api/src/main/java/org/apache/paimon/web/api/common/CatalogProperties.java
index 2b03e29..115da60 100644
--- 
a/paimon-web-api/src/main/java/org/apache/paimon/web/api/common/CatalogProperties.java
+++ 
b/paimon-web-api/src/main/java/org/apache/paimon/web/api/common/CatalogProperties.java
@@ -35,9 +35,9 @@ public class CatalogProperties {
 
     public static final String OSS_ENDPOINT = "fs.oss.endpoint";
 
-    public static final String OSS_SECRET_KEY = "fs.oss.accessKeyId";
+    public static final String OSS_ACCESS_KEY_ID = "fs.oss.accessKeyId";
 
-    public static final String OSS_ACCESS_KEY = "fs.oss.accessKeySecret";
+    public static final String OSS_ACCESS_KEY_SECRET = 
"fs.oss.accessKeySecret";
 
     public static final String HIVE_CONF_DIR = "hive-conf-dir";
 }

Reply via email to