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

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new bcc2184195 avoid duplicate filepath when selecting a folder, fixes 
#5844 (#5845)
bcc2184195 is described below

commit bcc2184195eb1555f009686610f0bd90c3399e9b
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Thu Oct 16 13:53:43 2025 +0200

    avoid duplicate filepath when selecting a folder, fixes #5844 (#5845)
    
    * avoid duplicate filepath when selecting a folder, fixes #5844
    
    * spotless
---
 ui/src/main/java/org/apache/hop/ui/core/dialog/BaseDialog.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/dialog/BaseDialog.java 
b/ui/src/main/java/org/apache/hop/ui/core/dialog/BaseDialog.java
index e3ab9d2ae9..c197322696 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/dialog/BaseDialog.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/dialog/BaseDialog.java
@@ -445,6 +445,8 @@ public abstract class BaseDialog extends Dialog {
     // Is this reading from a VFS URL?
     //
     if (filterPath.contains("://") || filterPath.contains(":///")) {
+      // Strip filterPath from fileName (these are equal when selecting a 
folder)
+      fileName = fileName.replace(filterPath, "");
       if (filterPath.endsWith("/")) {
         return filterPath + fileName;
       } else {

Reply via email to