BasicAuth and blockUnknown cause "Exception trying to get public key from..." error

2016-06-20 Thread Aleš Gregor
Hi all,

I am facing issue with BasicAuth and blockUnknown.

The blockUnknown in Solr authentication settings also blocks internal solr
nodes communication and it is  failing on fetching public keys of node in a
cluster.

I am getting following errors in the log:

2016-06-20 08:43:53.968 ERROR (qtp762152757-19) [   ]
o.a.s.s.PKIAuthenticationPlugin Exception trying to get public key from :
http://192.168.100.47:8983/solr
org.noggit.JSONParser$ParseException: JSON Parse Error: char=<,position=0
BEFORE='<' AFTER='html>  

SOLR 6: edismax search query with OR operator does not work as expected

2016-07-08 Thread Aleš Gregor
Hello,

after migrating my index from Solr 4.3 to Solr 6 I noticed that the OR
logical operator in search query no longer works as expected.

On Solr 4.3 query - Blue OR Red - brings all documents with Blue or Red or
both tokens found.
On Solr 6 the same query only brings documents with both the tokens, Blue
and Red.

I see some difference in the debug of the query but I cannot  make much
sense out of it.

Was there any change between Solr 4 and 6 that would cause this?

Thanks
Ales Gregor


Re: Internode communication failed when enable basic authentication Solr 6.1.0

2016-07-08 Thread Aleš Gregor
Hello,

could this be related to https://issues.apache.org/jira/browse/SOLR-9188 ?

Ales Gregor



2016-06-24 15:15 GMT+02:00 Shankar Ramalingam :

> Hi Team,
>
> Basic Authentication is enabled on Solr cloud and node1 is running on one
> machine and node2 is runnin on second machine, zookeeper installed on
> second machine.  Getting unathorized error when enable basic auth, error
> mostly occure when machine trying access machine 2 solr and also while
> starting solr also i can see the error message.
>
>
> It would be grateful if you help me to resole the issue. I saw some jira
> ticket stating that some internode communication issue and got fixed in
> solr 6, but I am using solr 6 only and also getting isssue, Even-though am
>  login admin user on solr UI, sometime getting Error 401 Unauthorized
> request mostly request go to node1 to node2.
>
>
>
>  [c:adm s:shard2 r:core_node2 x:adm_shard2_replica2  ]
> o.a.s.h.RequestHandlerBase
> org.apache.solr.client.solrj.impl.HttpSolrClient$Re
> moteSolrException:
> Error from server at http://172.16.7.58:8983/solr/adm_shard2_ replica1:
> Expected mime type application/octet-stream but got text/html. 
> 
> 
> Error 401 Unauthorized request, Response code: 401
> 
> HTTP ERROR 401
> Problem accessing /solr/adm_shard2_replica1/select. Reason:
>* Unauthorized request, Response code: 401*
> 
> 
>
>
>
> *Below code define in security.json*
>
> -bash-3.2# curl --user solr:SolrRocks
> http://localhost:8983/solr/admin/authorization
> {
>   "responseHeader":{
> "status":0,
> "QTime":0},
>   "authorization.enabled":true,
>   "authorization":{
> "class":"solr.RuleBasedAuthorizationPlugin",
> "user-role":{"solr":"admin"},
> "permissions":[{
> "name":"security-edit",
> "role":"admin",
> "index":1},
>   {
> "name":"read",
> "role":"admin",
> "index":2},
>   {
> "name":"collection-admin-read ",
> "role":"admin",
> "index":3}],
> "":{"v":50}}}
>
>
>
> Thanks,
> Shankar.
> Contact: 91+9894546732
>