[ 
https://issues.apache.org/jira/browse/SOLR-15169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308522#comment-17308522
 ] 

Andras Salamon commented on SOLR-15169:
---------------------------------------

These are not special unit test classes, just the same classes which can be 
found in upstream. For example SolrCloudExampleTest: 
[https://github.com/apache/lucene-solr/blob/releases/lucene-solr%2F8.4.1/solr/core/src/test/org/apache/solr/cloud/SolrCloudExampleTest.java]
 So I don't really understand why those relative path caused problems for us 
and not upstream.

> SolrPaths.assertPathAllowed normalization problem
> -------------------------------------------------
>
>                 Key: SOLR-15169
>                 URL: https://issues.apache.org/jira/browse/SOLR-15169
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Andras Salamon
>            Priority: Minor
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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)

Reply via email to