Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C45801050E for ; Sat, 30 Nov 2013 14:04:22 +0000 (UTC) Received: (qmail 15408 invoked by uid 500); 30 Nov 2013 14:03:11 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 15025 invoked by uid 500); 30 Nov 2013 14:02:48 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 14857 invoked by uid 99); 30 Nov 2013 14:02:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 14:02:39 +0000 Date: Sat, 30 Nov 2013 14:02:39 +0000 (UTC) From: "Erick Erickson (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (SOLR-1509) ShowFileRequestHandler has missleading error when asked for absolute path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erick Erickson reopened SOLR-1509: ---------------------------------- > ShowFileRequestHandler has missleading error when asked for absolute path > ------------------------------------------------------------------------- > > Key: SOLR-1509 > URL: https://issues.apache.org/jira/browse/SOLR-1509 > Project: Solr > Issue Type: Bug > Affects Versions: 1.4 > Reporter: Simon Rosenthal > Priority: Minor > > When a user attempts to use the ShowFileRequestHandler (ie: /admin/file ) to access a file using an absolute path (which may result from solr.xml containing an absolute path for schema.xml or solrconfig.xml outside of the normal conf dir) then the error message indicates that a file with the path consisting of the confdir + the absolute path can't be found. the Handler should explicitly check for absolute paths (like it checks for ".." and error message should make it clear that absolute paths are not allowed. > Example of current behavior... > {noformat} > schema path = /home/solrdata/rig1/conf/schema.xml > url displayed in admin form = http://host:port/solr/core1/admin/file/?file=/home/solrdata/rig1/conf/schema.xml > error message: Can not find: schema.xml [/path/to/core1/conf/directory/home/solrdata/rig1/conf/schema.xml] > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org