From a705b3607bb5625acc7fcbe3d2c453723541b850 Mon Sep 17 00:00:00 2001 From: Nicolas Adment <39568358+nadment@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:19:30 +0100 Subject: [PATCH] Fix space encoded as URI with %20 in UI filename #3674 --- .../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 e178207f2d2..92954a07777 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 void callExtensionPoint( 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 += "/";