You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by pradeepandey24 <pr...@gmail.com> on 2015/12/03 14:46:51 UTC

Stop adding content in Solr through /update URL

We have master/slave architecture of Solr and we are updating index on slave
server through ReplicationHandler.
We want that no body can directly update data into slave server using
/update from url.
Can we do it?  If yes please tell how.

Thanks in advance
Pradeep



--
View this message in context: http://lucene.472066.n3.nabble.com/Stop-adding-content-in-Solr-through-update-URL-tp4243365.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Stop adding content in Solr through /update URL

Posted by Chris Hostetter <ho...@fucit.org>.
: Never made it into CHANGES.txt either. Not part of any patch either.
: Appears to have been secretly committed as a part of SOLR-6787 (Blob API) via
: Revision *1650448
: <http://svn.apache.org/viewvc?view=revision&revision=1650448>* in Solr 5.1.

Really? ... huh ... i could have sworn it was much older then that.  I 
thought it had been around since the 1.x days.



-Hoss
http://www.lucidworks.com/

Re: Stop adding content in Solr through /update URL

Posted by Jack Krupansky <ja...@gmail.com>.
Never made it into CHANGES.txt either. Not part of any patch either.
Appears to have been secretly committed as a part of SOLR-6787 (Blob API) via
Revision *1650448
<http://svn.apache.org/viewvc?view=revision&revision=1650448>* in Solr 5.1.


-- Jack Krupansky

On Fri, Dec 4, 2015 at 10:54 PM, Alexandre Rafalovitch <ar...@gmail.com>
wrote:

> On 4 December 2015 at 19:23, Chris Hostetter <ho...@fucit.org>
> wrote:
> > NotFoundRequestHandler
>
> Totally not in either Wiki or Reference Guide. :-(
>
> Must be part of the secret committer's lore. Thank you for sharing it
> with us, pure plebs :-)
>
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>

Re: Stop adding content in Solr through /update URL

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
On 4 December 2015 at 19:23, Chris Hostetter <ho...@fucit.org> wrote:
> NotFoundRequestHandler

Totally not in either Wiki or Reference Guide. :-(

Must be part of the secret committer's lore. Thank you for sharing it
with us, pure plebs :-)

----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/

Re: Stop adding content in Solr through /update URL

Posted by Chris Hostetter <ho...@fucit.org>.
: You could add 'enable' flag in the solrconfig.xml and then
: enable/disable it differently on different servers:

Off the top of my head, i'm not certain if enable="false" on a "/update" 
handler will actaully do what the user wants -- it might prevent a handler 
from existing at that path; but i *think* the logic that creates implicit 
UpdateHandlers may still cause an implicit /update handler to be created
in that case? not certain.

The NotFoundRequestHandler on the other hand, was created explicitly for 
the purpose of being able to register it to paths where you just want to 
reject requests and over ride any implicit handler that might otherwise 
exist...

<requestHandler name="/update" enable="${iam.slave}" class="solr.NotFoundRequestHandler" />
<requestHandler name="/update" enable="${iam.master}" class="solr.UpdateRequestHandler" />



-Hoss
http://www.lucidworks.com/

Re: Stop adding content in Solr through /update URL

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
You could add 'enable' flag in the solrconfig.xml and then
enable/disable it differently on different servers:
https://wiki.apache.org/solr/SolrConfigXml#Enable.2Fdisable_components
Example: https://github.com/apache/lucene-solr/blob/lucene_solr_5_3_0/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml#L1354

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 3 December 2015 at 08:46, pradeepandey24 <pr...@gmail.com> wrote:
> We have master/slave architecture of Solr and we are updating index on slave
> server through ReplicationHandler.
> We want that no body can directly update data into slave server using
> /update from url.
> Can we do it?  If yes please tell how.
>
> Thanks in advance
> Pradeep
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Stop-adding-content-in-Solr-through-update-URL-tp4243365.html
> Sent from the Solr - User mailing list archive at Nabble.com.