You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/04/11 16:23:00 UTC

[jira] [Commented] (SOLR-15169) SolrPaths.assertPathAllowed normalization problem

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

ASF subversion and git services commented on SOLR-15169:
--------------------------------------------------------

Commit 963a81de14535139a637d901875c25760d14da8a in solr's branch refs/heads/main from AndrĂ¡s Salamon
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=963a81d ]

SOLR-15169 SolrPaths.assertPathAllowed normalization problem (#22)



> 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: 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org