[ 
https://issues.apache.org/jira/browse/RANGER-5384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj resolved RANGER-5384.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.8.0
       Resolution: Fixed

master branch: 
[https://github.com/apache/ranger/commit/48b45bf9bbb464474d9c772b5f91093b9d851c54]

ranger-2.8 branch: 
[https://github.com/apache/ranger/commit/cb2d7a73cab059c3ff4cc8a3a9972f1312500bb6]

> 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
>            Priority: Major
>             Fix For: 3.0.0, 2.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to