This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new c5bacbde fix: fix JsonMappingException when defaultRealm property is
added in polaris-server.yml (#615)
c5bacbde is described below
commit c5bacbde93f2d85cf1446d487ccfe93d706ace9d
Author: CG <[email protected]>
AuthorDate: Tue Jan 7 18:24:11 2025 +0800
fix: fix JsonMappingException when defaultRealm property is added in
polaris-server.yml (#615)
---
.../polaris/service/dropwizard/config/PolarisApplicationConfig.java | 1 -
polaris-server.yml | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git
a/dropwizard/service/src/main/java/org/apache/polaris/service/dropwizard/config/PolarisApplicationConfig.java
b/dropwizard/service/src/main/java/org/apache/polaris/service/dropwizard/config/PolarisApplicationConfig.java
index e5f94e1c..d2afa150 100644
---
a/dropwizard/service/src/main/java/org/apache/polaris/service/dropwizard/config/PolarisApplicationConfig.java
+++
b/dropwizard/service/src/main/java/org/apache/polaris/service/dropwizard/config/PolarisApplicationConfig.java
@@ -309,7 +309,6 @@ public class PolarisApplicationConfig extends Configuration
{
@JsonProperty("defaultRealm")
public void setDefaultRealm(String defaultRealm) {
this.defaultRealm = defaultRealm;
- realmContextResolver.setDefaultRealm(defaultRealm);
}
@JsonProperty("cors")
diff --git a/polaris-server.yml b/polaris-server.yml
index 0bc9f785..6d2fee83 100644
--- a/polaris-server.yml
+++ b/polaris-server.yml
@@ -76,6 +76,8 @@ featureConfiguration:
callContextResolver:
type: default
+defaultRealm: default-realm
+
realmContextResolver:
type: default