Andras Salamon created SOLR-15169:
-------------------------------------

             Summary: SolrPaths.assertPathAllowed normalization problem
                 Key: SOLR-15169
                 URL: https://issues.apache.org/jira/browse/SOLR-15169
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Andras Salamon


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:
{noformat}
SolrPaths.assertPathAllowed(Path.of("/a/b/../b/d"), 
Set.of(Path.of("/a/b/../b"), Path.of("/c"))); {noformat}

even if "a/b/..b/" is a prefix of "/a/b/../b/d".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to