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

It's not possible anymore to indicate a relative path to the core data folder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.6
    • None
    • None
    • None

    Description

      See https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.8.0/solr/core/src/java/org/apache/solr/core/SolrPaths.java#L124.

      SOLR-14561 introduced a check to forbid using a path starting with "../" for the data of a core. This makes impossible to indicate a relative path to a data folder which is not stored in the core folder itself. Og course you can set an absolute path (provided it's part of the allowed paths), but then it makes impossible to move the entire storage somewhere else because it will break the stored path.

      IMO the check for "../" prefix should be completely removed, and instead relative paths should be resolved to check if they are part of the allowed paths. At least for my use case having to set allowed paths is fine but it's possible some people might want to completely disable allowed path system.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: