Madhan Neethiraj created RANGER-5384:
----------------------------------------
Summary: Audit UI fails to query from kerberized Solr
Key: RANGER-5384
URL: https://issues.apache.org/jira/browse/RANGER-5384
Project: Ranger
Issue Type: Bug
Components: admin
Reporter: Madhan Neethiraj
Assignee: Madhan Neethiraj
Basic auth header is set in requests to Solr even when username and password
are set to empty value in configuration ({{{}ranger.solr.audit.user{}}},
{{{}ranger.solr.audit.user.password{}}}). This results in requests to fail with
the following error:
{noformat}
2025-10-23 06:56:28,283 [http-nio-6080-exec-3] ERROR [SolrUtil.java:90] Error
from Solr server.
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://ranger-solr:8983/solr/ranger_audits: Expected mime type
application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401 Authentication required</h2>
<table>
<tr><th>URI:</th><td>/solr/ranger_audits/select</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>Authentication required</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table></body>
</html> {noformat}
Here are corresponding logs from Solr server:
{noformat}
2025-10-24 00:58:45.413 WARN (qtp284686302-25) [ ]
o.a.h.s.a.s.KerberosAuthenticationHandler 'Authorization' does not start with
'Negotiate' : Basic Og==
2025-10-24 00:58:45.434 WARN (qtp284686302-18) [ ]
o.a.h.s.a.s.KerberosAuthenticationHandler 'Authorization' does not start with
'Negotiate' : Basic Og==
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)