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

ricardozanini pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new 67c6b9475 NO-ISSUE: fix test failures on windows (#2268)
67c6b9475 is described below

commit 67c6b947505d757607402d2075f80f812475ebe3
Author: Jan Stastny <[email protected]>
AuthorDate: Fri Sep 12 16:10:24 2025 +0200

    NO-ISSUE: fix test failures on windows (#2268)
    
    Co-authored-by: jstastny-cz <[email protected]>
---
 .../org/kie/kogito/index/service/vertx/VertxRouterSetupHelper.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/data-index/data-index-service/data-index-service-common/src/main/java/org/kie/kogito/index/service/vertx/VertxRouterSetupHelper.java
 
b/data-index/data-index-service/data-index-service-common/src/main/java/org/kie/kogito/index/service/vertx/VertxRouterSetupHelper.java
index 7f9234b7f..6e0c904dc 100644
--- 
a/data-index/data-index-service/data-index-service-common/src/main/java/org/kie/kogito/index/service/vertx/VertxRouterSetupHelper.java
+++ 
b/data-index/data-index-service/data-index-service-common/src/main/java/org/kie/kogito/index/service/vertx/VertxRouterSetupHelper.java
@@ -18,6 +18,7 @@
  */
 package org.kie.kogito.index.service.vertx;
 
+import java.io.File;
 import java.util.function.Function;
 
 import io.vertx.core.MultiMap;
@@ -59,7 +60,7 @@ public class VertxRouterSetupHelper {
                             .end());
 
             final String normalized = indexUIPath.endsWith("/") ? 
indexUIPath.substring(0, indexUIPath.length() - 1) : indexUIPath;
-            final FileSystemAccess fsa = normalized.startsWith("/") ? 
FileSystemAccess.ROOT : FileSystemAccess.RELATIVE;
+            final FileSystemAccess fsa = new File(normalized).isAbsolute() ? 
FileSystemAccess.ROOT : FileSystemAccess.RELATIVE;
             final StaticHandler handler = StaticHandler.create(fsa, normalized)
                     .setDefaultContentEncoding("utf-8")
                     .setDirectoryListing(false)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to