@@ -506,7 +506,7 @@ public void testSolrInstallDir() throws Exception {
506506 private static final String ALLOW_PATHS_SOLR_XML =
507507 "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n "
508508 + "<solr>\n "
509- + "<str name=\" allowPaths\" >${solr.allowPaths :}</str>\n "
509+ + "<str name=\" allowPaths\" >${solr.security.allow.paths :}</str>\n "
510510 + "</solr>" ;
511511
512512 private static final String CUSTOM_HANDLERS_SOLR_XML =
@@ -630,7 +630,7 @@ public CustomConfigSetsHandler(CoreContainer cc) {
630630 @ Test
631631 public void assertAllowPathFromSolrXml () throws Exception {
632632 Assume .assumeFalse (OS .isFamilyWindows ());
633- System .setProperty ("solr.allowPaths " , "/var/solr" );
633+ System .setProperty ("solr.security.allow.paths " , "/var/solr" );
634634 CoreContainer cc = init (ALLOW_PATHS_SOLR_XML );
635635 cc .assertPathAllowed (Path .of ("/var/solr/foo" ));
636636 try {
@@ -640,14 +640,14 @@ public void assertAllowPathFromSolrXml() throws Exception {
640640 /* Ignore */
641641 } finally {
642642 cc .shutdown ();
643- System .clearProperty ("solr.allowPaths " );
643+ System .clearProperty ("solr.security.allow.paths " );
644644 }
645645 }
646646
647647 @ Test
648648 public void assertAllowPathFromSolrXmlWin () throws Exception {
649649 Assume .assumeTrue (OS .isFamilyWindows ());
650- System .setProperty ("solr.allowPaths " , "C:\\ solr" );
650+ System .setProperty ("solr.security.allow.paths " , "C:\\ solr" );
651651 CoreContainer cc = init (ALLOW_PATHS_SOLR_XML );
652652 cc .assertPathAllowed (Path .of ("C:\\ solr\\ foo" ));
653653 try {
@@ -657,7 +657,7 @@ public void assertAllowPathFromSolrXmlWin() throws Exception {
657657 /* Ignore */
658658 } finally {
659659 cc .shutdown ();
660- System .clearProperty ("solr.allowPaths " );
660+ System .clearProperty ("solr.security.allow.paths " );
661661 }
662662 }
663663
@@ -691,7 +691,7 @@ public void assertAllowPathWindows() {
691691 @ Test
692692 public void assertAllowPathNormalization () throws Exception {
693693 Assume .assumeFalse (OS .isFamilyWindows ());
694- System .setProperty ("solr.allowPaths " , "/var/solr/../solr" );
694+ System .setProperty ("solr.security.allow.paths " , "/var/solr/../solr" );
695695 CoreContainer cc = init (ALLOW_PATHS_SOLR_XML );
696696 cc .assertPathAllowed (Path .of ("/var/solr/foo" ));
697697 assertThrows (
@@ -701,13 +701,13 @@ public void assertAllowPathNormalization() throws Exception {
701701 cc .assertPathAllowed (Path .of ("/tmp" ));
702702 });
703703 cc .shutdown ();
704- System .clearProperty ("solr.allowPaths " );
704+ System .clearProperty ("solr.security.allow.paths " );
705705 }
706706
707707 @ Test
708708 public void assertAllowPathNormalizationWin () throws Exception {
709709 Assume .assumeTrue (OS .isFamilyWindows ());
710- System .setProperty ("solr.allowPaths " , "C:\\ solr\\ ..\\ solr" );
710+ System .setProperty ("solr.security.allow.paths " , "C:\\ solr\\ ..\\ solr" );
711711 CoreContainer cc = init (ALLOW_PATHS_SOLR_XML );
712712 cc .assertPathAllowed (Path .of ("C:\\ solr\\ foo" ));
713713 assertThrows (
@@ -717,7 +717,7 @@ public void assertAllowPathNormalizationWin() throws Exception {
717717 cc .assertPathAllowed (Path .of ("C:\\ tmp" ));
718718 });
719719 cc .shutdown ();
720- System .clearProperty ("solr.allowPaths " );
720+ System .clearProperty ("solr.security.allow.paths " );
721721 }
722722
723723 private static Set <Path > ALLOWED_PATHS = Set .of (Path .of ("/var/solr" ));
0 commit comments