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

Jan Høydahl commented on SOLR-10718:
------------------------------------

Yea, I can confirm it is only a problem when Solr is started with these 
options. I think that the first CREATE hop from client to Solr is authenticated 
ok, but once the overseer picks the job from the queue, things are messed up. 
Wonder if this will also be the case for other overseer operations?

I'm not sure that avoiding these options during Solr startup will work, since 
it may break kerberos auth, see SOLR-10646. 

Note: I reproduced this using the new {{bin/solr auth}} feature in SOLR-8440 as 
well:
{noformat}
bin/solr start -c
bin/solr auth enable -credentials solr:rocks
bin/solr stop
bin/solr start -c
bin/solr create -c foo
*BOOM*
{noformat}

I believe we must find a way to fix this where it crashes, else people who 
start using SOLR-8440 will start complaining once they restart their Solr 
instance...

> Configuring Basic auth prevents adding a collection
> ---------------------------------------------------
>
>                 Key: SOLR-10718
>                 URL: https://issues.apache.org/jira/browse/SOLR-10718
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server
>    Affects Versions: 6.5, 6.5.1
>            Reporter: Shawn Feldman
>            Priority: Minor
>         Attachments: repro.sh
>
>
> Configure Basic auth according to documentation 
> Add basic auth params 
> SOLR_AUTH_TYPE="basic"
> SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:SolrRocks"
> Try to add a collection 
> Receive a timeout and error in the logs 
> {code}
> java.lang.IllegalArgumentException: Credentials may not be null
>         at org.apache.http.util.Args.notNull(Args.java:54)
>         at org.apache.http.auth.AuthState.update(AuthState.java:113)
>         at 
> org.apache.solr.client.solrj.impl.PreemptiveAuth.process(PreemptiveAuth.java:56)
>         at 
> org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
>         at 
> org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:166)
>         at 
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:485)
>         at 
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>         at 
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:515)
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
>         at 
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to