Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
In the SolrPaths.assertPathAllowed the normalize() method is only called for pathToAssert and not for the allowPaths elements, which means that the following call gives SolrException:
SolrPaths.assertPathAllowed(Path.of("/a/b/../b/d"), Set.of(Path.of("/a/b/../b"), Path.of("/c")));
even if "a/b/..b/" is a prefix of "/a/b/../b/d".