You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Thomas Mortagne (Jira)" <ji...@apache.org> on 2021/02/11 15:50:00 UTC

[jira] [Created] (SOLR-15151) It's not possible anymore to indicate a relative path to the core data folder

Thomas Mortagne created SOLR-15151:
--------------------------------------

             Summary: It's not possible anymore to indicate a relative path to the core data folder
                 Key: SOLR-15151
                 URL: https://issues.apache.org/jira/browse/SOLR-15151
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.6
            Reporter: Thomas Mortagne


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org