: Maybe we can add an error message to ShowFileRequesHandler that
: explains to the user that displaying an absolute path doesn't work?

yeah ... that would certianly be better -- i think it alreayd does that if 
you try "../../foo" but for "absolute" paths there is no explicit test -- 
just the failure when it attempts ot resolve that path relative the conf 
dir.

: 
: On Mon, Apr 26, 2010 at 1:13 PM, Chris Hostetter
: <hossman_luc...@fucit.org> wrote:
: >
: > : Does this work?  When trying to display with a URL such as
: > : "solr/sandbox/admin/file/?file=/mnt/solr/schema.xml" from the Solr
: > : admin console, the following error occurs:
: > :
: > : type Status report
: > :
: > : message Can not find: schema.xml 
[/mnt/solr/sandbox/conf/mnt/solr/schema.xml]
: >
: > As written the ShowFileRequesHandler will only allow you to access files
: > in the "conf" dir for the current SolrCore -- even if you specify an
: > absolute path, it treats it as being relativie hte conf dir (hence the
: > path returned by the error message)
: >
: > it's a psuedo safety feature to prevent requests like
: >
: >        /admin/file/?file=/etc/password
: >
: >
: > -Hoss
: >
: >
: 



-Hoss

Reply via email to