[ 
https://issues.apache.org/jira/browse/SOLR-15169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Høydahl updated SOLR-15169:
-------------------------------
    Fix Version/s: main (9.0)

> 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
>             Fix For: main (9.0)
>
>          Time Spent: 2h 20m
>  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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to