Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15169

SolrPaths.assertPathAllowed normalization problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • 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".

      Attachments

        Activity

          People

            janhoy Jan Høydahl
            asalamon74 Andras Salamon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h