Apache Lucene open-source search software
SOLR-6637: improve CHANGES entry + fix wrong usage of path in snapshooter
Varun Thacker71fca8a60d7d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex b3db61638ad..6226fdcfc9e 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -84,7 +84,11 @@ Detailed Change ListNew Features-----------------------* SOLR-6637: Solr should have a way to restore a core from a backed up index.+* SOLR-6637: Restore a Solr core from a backed up index.+ Restore API Example -+ http://localhost:8983/solr/techproducts/replication?command=restore&name=backup_name+ Restore Status API Example -+ http://localhost:8983/solr/techproducts/replication?command=restorestatus(Varun Thacker, noble, shalin)* SOLR-7241, SOLR-7263, SOLR-7279: More functionality moving the Admin UI to Angular JSdiff --git a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java b/solr/core/src/java/org/apache/solr/handler/SnapShooter.javaindex ffdafa5b310..55962a9593c 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapShooter.java@@ -63,7 +63,8 @@ public class SnapShooter {snapDir = core.getDataDir();}else {- snapDir = Paths.get(core.getCoreDescriptor().getInstanceDir()).resolve(location).toAbsolutePath().toString();+ File base = new File(core.getCoreDescriptor().getInstanceDir());+ snapDir = org.apache.solr.util.FileUtils.resolvePath(base, location).getAbsolutePath();}this.snapshotName = snapshotName;