You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2014/11/12 02:30:34 UTC

[jira] [Commented] (SOLR-6723) Give HttpSolrServer the ability to send OPTIONS requests

    [ https://issues.apache.org/jira/browse/SOLR-6723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14207488#comment-14207488 ] 

Mark Miller commented on SOLR-6723:
-----------------------------------

+1, looks good!

> Give HttpSolrServer the ability to send OPTIONS requests
> --------------------------------------------------------
>
>                 Key: SOLR-6723
>                 URL: https://issues.apache.org/jira/browse/SOLR-6723
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrJ
>            Reporter: Gregory Chanan
>            Assignee: Gregory Chanan
>            Priority: Minor
>         Attachments: SOLR-6723.patch
>
>
> This feature is related to SOLR-6625.  I have a kerberos filter defined in solr's web.xml and need to authenticate.  As mentioned in SOLR-6625, we are required to send a repeatable request in order to trigger SPNego negotiation prior to sending a non-repeatable (PUT or POST) request.  The standard way to do this seems to be to send an OPTIONS call, see for example, hadoop's KerberosAuthenticator (https://github.com/apache/hadoop/blob/eace218411a7733abb8dfca6aaa4eb0557e25e0c/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/client/KerberosAuthenticator.java#L185-L186).  This is arbitrary, i.e. we could trigger the negotiation based on some path rather then the request method, but it seems better to just use what other projects use here rather than make up our own solution.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org