Maybe we can add an error message to ShowFileRequesHandler that explains to the user that displaying an absolute path doesn't work?
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 > >