You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@artemis.apache.org by jb...@apache.org on 2026/09/03 16:31:20 UTC
(artemis) 09/14: ARTEMIS-6116 Fix keystore path for Windows
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis.git
commit bc8fb8327a30fcd2227aefc1bdda7298bcd41b45
Author: gchuf <ga...@gmail.com>
AuthorDate: Fri Jul 10 11:03:25 2026 +0200
ARTEMIS-6116 Fix keystore path for Windows
---
.../artemis/spi/core/security/jaas/LDAPLoginModuleTest.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModuleTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModuleTest.java
index 5b98ab0b38..0314e68c02 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModuleTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/LDAPLoginModuleTest.java
@@ -34,6 +34,8 @@ import javax.security.auth.spi.LoginModule;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
+import java.net.URL;
+import java.nio.file.Paths;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
@@ -101,9 +103,10 @@ public class LDAPLoginModuleTest extends AbstractLdapTestUnit {
directoryService.setAllowAnonymousAccess(true);
ldapServer.setDirectoryService(directoryService);
- String keystore = Objects.requireNonNull(this.getClass().getClassLoader().
- getResource("server-keystore-without-ca.p12")).getFile();
- ldapServer.setKeystoreFile(keystore);
+ URL keystore = Objects.requireNonNull(this.getClass().getClassLoader().
+ getResource("server-keystore-without-ca.p12"));
+ String keystorePath = Paths.get(keystore.toURI()).toString();
+ ldapServer.setKeystoreFile(keystorePath);
ldapServer.setCertificatePassword("securepass");
ldapServer.start();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@artemis.apache.org
For additional commands, e-mail: commits-help@artemis.apache.org