Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-15244 partial revert of unintended behaviour change

Mike Drob5689101545e2
diff --git a/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java b/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java
index 65b03530d76..d49344283e7 100644
--- a/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java
+++ b/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java
@@ -79,7 +79,7 @@ public class StandardDirectoryFactory extends CachingDirectoryFactory {
@Override
public String normalize(String path) throws IOException {
- return super.normalize(Path.of(path).toRealPath().toString());
+ return super.normalize(new File(path).getCanonicalPath());
}
public boolean isPersistent() {