Just wanted to close the loop here: Isabelle filed SOLR-14569 for this
and eventually reported there that the problem seems specific to her
custom configuration which specifies a seemingly innocuous
<shardHandlerFactory> in solrconfig.xml.

See that jira for more detailed explanation (and hopefully a
resolution coming soon).

On Wed, Jun 10, 2020 at 4:01 PM Jan Høydahl <jan....@cominvent.com> wrote:
>
> Please share your security.json file
>
> Jan Høydahl
>
> > 10. jun. 2020 kl. 21:53 skrev Isabelle Giguere 
> > <igigu...@opentext.com.invalid>:
> >
> > Hi;
> >
> > I'm using Solr 8.5.0.  I have uploaded security.json to Zookeeper.  I can 
> > log in the Solr Admin UI.  I can create collections and aliases, and I can 
> > index documents in Solr.
> >
> > Collections : test1, test2
> > Alias: test (combines test1, test2)
> >
> > Indexed document "solr-word.pdf" in collection test1
> >
> > Searching on a collection works:
> > http://localhost:8983/solr/test1/select?q=*:*&wt=xml
> > <result name="response" numFound="1" start="0">
> >
> > But searching on an alias results in HTTP 401
> > http://localhost:8983/solr/test/select?q=*:*&wt=xml
> >
> > Error from server at null: Expected mime type application/octet-stream but 
> > got text/html. <html> <head> <meta http-equiv="Content-Type" 
> > content="text/html;charset=utf-8"/> <title>Error 401 Authentication failed, 
> > Response code: 401</title> </head> <body><h2>HTTP ERROR 401 Authentication 
> > failed, Response code: 401</h2> <table> 
> > <tr><th>URI:</th><td>/solr/test1_shard1_replica_n1/select</td></tr> 
> > <tr><th>STATUS:</th><td>401</td></tr> 
> > <tr><th>MESSAGE:</th><td>Authentication failed, Response code: 
> > 401</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table> </body> 
> > </html>
> >
> > Even if https://issues.apache.org/jira/browse/SOLR-13510 is fixed in Solr 
> > 8.5.0, I did try to start Solr with -Dsolr.http1=true, and I set 
> > "forwardCredentials":true in security.json.
> >
> > Nothing works.  I just cannot use aliases when Solr is secured.
> >
> > Can anyone confirm if this may be a configuration issue, or if this could 
> > possibly be a bug ?
> >
> > Thank you;
> >
> > Isabelle Giguère
> > Computational Linguist & Java Developer
> > Linguiste informaticienne & développeur java
> >
> >

Reply via email to