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 326486862c Fix: Rename the pipeline/workflow referenced in files and
metadata on Windows #8161 (#8167)
326486862c is described below
commit 326486862c3a4337fd1c3f1bfe47011de3edf4fb
Author: Nicolas Adment <[email protected]>
AuthorDate: Sat Aug 29 20:27:11 2026 +0200
Fix: Rename the pipeline/workflow referenced in files and metadata on
Windows #8161 (#8167)
---
.../org/apache/hop/metadata/refactor/MetadataReferenceFinder.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/engine/src/main/java/org/apache/hop/metadata/refactor/MetadataReferenceFinder.java
b/engine/src/main/java/org/apache/hop/metadata/refactor/MetadataReferenceFinder.java
index 5b0d9fdbdd..4c86b3629b 100644
---
a/engine/src/main/java/org/apache/hop/metadata/refactor/MetadataReferenceFinder.java
+++
b/engine/src/main/java/org/apache/hop/metadata/refactor/MetadataReferenceFinder.java
@@ -371,6 +371,7 @@ public class MetadataReferenceFinder {
String projectHome = variables.resolve(Const.VAR_PROJECT_HOME);
if (projectHome != null && !projectHome.isEmpty() &&
newPath.startsWith(projectHome)) {
String rel = newPath.substring(projectHome.length());
+ rel = rel.replace(File.separatorChar, '/');
if (!rel.startsWith("/")) {
rel = '/' + rel;
}
@@ -529,6 +530,7 @@ public class MetadataReferenceFinder {
if (tagNames.isEmpty()) {
return;
}
+ oldPath = normalizeFilePath(oldPath);
for (MetadataReferenceResult result : results) {
replaceInFile(result.getFilePath(), tagNames, oldPath, newPath,
variables);
}
@@ -787,6 +789,9 @@ public class MetadataReferenceFinder {
if (target == null) {
continue;
}
+
+ oldPath = normalizeFilePath(oldPath);
+
if (cf.listFieldName != null) {
if (replaceFilePathInList(target, cf, oldPath, newPath,
variables)) {
updated = true;