mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
java client: read security.toml without an [https.client] section
toml.getBoolean returns null for a missing key, so unboxing it threw a NullPointerException in the static initializer and every FilerClient failed with ExceptionInInitializerError when security.toml held only other sections, such as [grpc] or [jwt.filer_signing]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
781288cf11
commit
0b77ec4723
1 file changed
+1
-1
@@ -86,7 +86,7 @@ public abstract class FilerSecurityContext extends SslContext {
|
||||
}
|
||||
}
|
||||
|
||||
if (toml.getBoolean("https.client.enabled")) {
|
||||
if (toml.getBoolean("https.client.enabled", false)) {
|
||||
httpTrustCertCollectionFilePath = toml.getString("https.client.ca");
|
||||
logger.debug("loading HTTP ca from {}", httpTrustCertCollectionFilePath);
|
||||
httpClientCertChainFilePath = toml.getString("https.client.cert");
|
||||
|
||||
Reference in new issue
Block a user