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

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

commit a705b3607bb5625acc7fcbe3d2c453723541b850
Author: Nicolas Adment <[email protected]>
AuthorDate: Wed Mar 6 20:19:30 2024 +0100

    Fix space encoded as URI with %20 in UI filename #3674
---
 .../org/apache/hop/projects/xp/HopGuiFileReplaceHomeVariable.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileReplaceHomeVariable.java
 
b/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileReplaceHomeVariable.java
index e178207f2d..92954a0777 100644
--- 
a/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileReplaceHomeVariable.java
+++ 
b/plugins/misc/projects/src/main/java/org/apache/hop/projects/xp/HopGuiFileReplaceHomeVariable.java
@@ -60,10 +60,10 @@ public class HopGuiFileReplaceHomeVariable implements 
IExtensionPoint<HopGuiFile
       if (StringUtils.isNotEmpty(homeFolder)) {
 
         FileObject file = HopVfs.getFileObject(ext.filename);
-        String absoluteFile = file.getName().getURI();
+        String absoluteFile = file.getName().getPath();
 
         FileObject home = HopVfs.getFileObject(homeFolder);
-        String absoluteHome = home.getName().getURI();
+        String absoluteHome = home.getName().getPath();
         // Make the URI always end with a /
         if (!absoluteHome.endsWith("/")) {
           absoluteHome += "/";

Reply via email to