Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 62353 invoked from network); 20 Feb 2011 21:29:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Feb 2011 21:29:01 -0000 Received: (qmail 85426 invoked by uid 500); 20 Feb 2011 21:29:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 85190 invoked by uid 500); 20 Feb 2011 21:28:59 -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 85183 invoked by uid 99); 20 Feb 2011 21:28:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 21:28:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 21:28:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AFF781AFC21 for ; Sun, 20 Feb 2011 21:28:38 +0000 (UTC) Date: Sun, 20 Feb 2011 21:28:38 +0000 (UTC) From: "Timo Schmidt (JIRA)" To: dev@lucene.apache.org Message-ID: <623912892.4859.1298237318717.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <670076401.30.1298019758460.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (SOLR-2374) Create UpdateFileRequestHandler 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-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997224#comment-12997224 ] Timo Schmidt commented on SOLR-2374: ------------------------------------ Hello together, today i had a look at the code and currently i have one proposal: Currently there is SolrResourceLoader and ZKSolrResourceLoader, which handle the resource loading for normal solr and zookeeper solr (openResource). What do you thing of refactoring the resourceLoader to a resourceManager, with the possibility to open resources for reading and writing. But afaik openResource is also used to open jar files and i thing it should not be possible to write these files for security reasons. What do you think? > Create UpdateFileRequestHandler > ------------------------------- > > Key: SOLR-2374 > URL: https://issues.apache.org/jira/browse/SOLR-2374 > Project: Solr > Issue Type: New Feature > Components: update > Affects Versions: 1.4.1 > Reporter: Timo Schmidt > Labels: config, file, patch, upload > Fix For: Next > > Attachments: UpdateFileRequestHandler.patch > > Original Estimate: 4h > Remaining Estimate: 4h > > It would be nice to be able to update files like synonyms.txt and stopwords.txt with a seperrat request handler. Since i am very new to solr development i've prepared a patch with a new UpdateFileRequest handler. Maybe it would be good to refactor the existing fileRequestHandler. > Currently it is implemented that you need to whitelist all files which should be editable. I think this is better for security reasons. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org