You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2023/03/31 16:18:00 UTC
[jira] [Updated] (SOLR-16729) NP because roles is null
[ https://issues.apache.org/jira/browse/SOLR-16729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-16729:
-------------------------------
Description:
When using SolrCloud with following simple security.json
{code:java}
{
"authentication": {
"class": "solr.BasicAuthPlugin",
"blockUnknown": true,
"credentials": {
"blue": "xxxx"
}
},
"authorization": {
"class": "solr.RuleBasedAuthorizationPlugin",
"permissions": [{
"name": "all",
"role": "admin"
}],
"user-role": {
"blue": "admin"
}
}
}
{code}
After login and clicking on *Cloud* in Admin UI following exception shows up in the logs (see next comment)
was:
When using SolrCloud with following simple security.json
{
"authentication": {
"class": "solr.BasicAuthPlugin",
"blockUnknown": true,
"credentials": {
"blue": "xxxx"
}
},
"authorization": {
"class": "solr.RuleBasedAuthorizationPlugin",
"permissions": [
{
"name": "all",
"role": "admin"
}
],
"user-role": {
"blue": "admin"
}
}
}
After login and clicking on *Cloud* in Admin UI following exception shows up in the logs:
2023-03-31T08:32:48.543965474Z 2023-03-31 08:32:48.513 ERROR (qtp1895143699-29) [] o.a.s.h.RequestHandlerBase java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null => java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.544044344Z at org.apache.solr.handler.admin.SystemInfoHandler.getSecurityInfo(SystemInfoHandler.java:347)
2023-03-31T08:32:48.544181776Z java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.544195652Z at org.apache.solr.handler.admin.SystemInfoHandler.getSecurityInfo(SystemInfoHandler.java:347) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544230099Z at org.apache.solr.handler.admin.SystemInfoHandler.handleRequestBody(SystemInfoHandler.java:155) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544326484Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544339721Z at org.apache.solr.handler.admin.InfoHandler.handle(InfoHandler.java:94) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544372897Z at org.apache.solr.handler.admin.InfoHandler.handleRequestBody(InfoHandler.java:82) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544382977Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544416569Z at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:929) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544446225Z at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:877) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544480264Z at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:548) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544491123Z at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:252) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544523227Z at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:220) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544535316Z at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544560151Z at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544571048Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:215) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544595309Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.544604831Z at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544635454Z at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544646277Z at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544673462Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544685145Z at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) ~[jetty-security-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544713695Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544726678Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544755284Z at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544766212Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544812144Z at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544829449Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544859238Z at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544869554Z at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544896392Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544907740Z at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544932619Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544943701Z at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544973231Z at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:228) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.544984782Z at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545011523Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545022402Z at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) ~[jetty-rewrite-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545050793Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545061762Z at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545091457Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545103236Z at org.eclipse.jetty.server.Server.handle(Server.java:563) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545133571Z at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545146377Z at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545171818Z at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545182596Z at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545207835Z at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545217714Z at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545253099Z at org.eclipse.jetty.io.ssl.SslConnection$1.run(SslConnection.java:132) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545264464Z at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545295271Z at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545306876Z at java.lang.Thread.run(Thread.java:833) [?:?]
2023-03-31T08:32:48.545334335Z 2023-03-31 08:32:48.514 INFO (qtp1895143699-29) [] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/system params=\{wt=javabin&version=2&_=1680251050133} status=500 QTime=1
2023-03-31T08:32:48.545346113Z 2023-03-31 08:32:48.515 ERROR (qtp1895143699-29) [] o.a.s.s.HttpSolrCall java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null => java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.545375145Z at org.apache.solr.handler.admin.SystemInfoHandler.getSecurityInfo(SystemInfoHandler.java:347)
2023-03-31T08:32:48.545386013Z java.lang.NullPointerException: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.545411160Z at org.apache.solr.handler.admin.SystemInfoHandler.getSecurityInfo(SystemInfoHandler.java:347) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545423521Z at org.apache.solr.handler.admin.SystemInfoHandler.handleRequestBody(SystemInfoHandler.java:155) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545458374Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545470300Z at org.apache.solr.handler.admin.InfoHandler.handle(InfoHandler.java:94) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545505472Z at org.apache.solr.handler.admin.InfoHandler.handleRequestBody(InfoHandler.java:82) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545518507Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545553041Z at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:929) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545564454Z at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:877) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545592569Z at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:548) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545608741Z at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:252) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545639656Z at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:220) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545651497Z at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545682530Z at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545695365Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:215) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545725047Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.545736178Z at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545770267Z at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545781329Z at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545811207Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545821983Z at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) ~[jetty-security-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545846185Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545855856Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545885752Z at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545899836Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545925679Z at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.545937028Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546186572Z at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546210564Z at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546274083Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546287045Z at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546331297Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546343197Z at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546376784Z at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:228) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546388728Z at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546417145Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546426972Z at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) ~[jetty-rewrite-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546452855Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546464105Z at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546478114Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546481563Z at org.eclipse.jetty.server.Server.handle(Server.java:563) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546484422Z at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546487265Z at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546490117Z at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546492756Z at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546496288Z at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546499379Z at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546506488Z at org.eclipse.jetty.io.ssl.SslConnection$1.run(SslConnection.java:132) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546509234Z at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546511672Z at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.546514387Z at java.lang.Thread.run(Thread.java:833) [?:?]
2023-03-31T08:32:48.577862385Z 2023-03-31 08:32:48.565 WARN (qtp1895143699-107) [] o.a.s.h.a.AdminHandlersProxy Exception when fetching result from node localhost:8984_solr => java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at https://localhost:8984/solr: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.577898693Z at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
2023-03-31T08:32:48.577904028Z java.util.concurrent.ExecutionException: org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at https://localhost:8984/solr: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.577907574Z at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
2023-03-31T08:32:48.577911115Z at java.util.concurrent.FutureTask.get(FutureTask.java:205) ~[?:?]
2023-03-31T08:32:48.577915177Z at org.apache.solr.handler.admin.AdminHandlersProxy.maybeProxyToNodes(AdminHandlersProxy.java:112) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577919028Z at org.apache.solr.handler.admin.SystemInfoHandler.handleRequestBody(SystemInfoHandler.java:139) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577922480Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577925778Z at org.apache.solr.handler.admin.InfoHandler.handle(InfoHandler.java:94) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577929147Z at org.apache.solr.handler.admin.InfoHandler.handleRequestBody(InfoHandler.java:82) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577932615Z at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:224) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577937477Z at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:929) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577941405Z at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:877) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577944624Z at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:548) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577947767Z at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:252) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577950846Z at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:220) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577966808Z at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577970858Z at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577974903Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:215) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577978120Z at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:197) ~[solr-core-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.577981111Z at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577984099Z at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577986897Z at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577990345Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577993189Z at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) ~[jetty-security-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577995632Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.577998522Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578001648Z at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578004924Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578007490Z at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578010402Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578013952Z at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) ~[jetty-servlet-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578016774Z at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578019472Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578022855Z at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578026034Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578031939Z at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578035216Z at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:228) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578038052Z at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578040819Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578044648Z at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) ~[jetty-rewrite-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578047574Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578050916Z at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578054099Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578057072Z at org.eclipse.jetty.server.Server.handle(Server.java:563) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578060639Z at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578063422Z at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578066286Z at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578069390Z at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:457) ~[jetty-server-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578072349Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578075637Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578078945Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578082119Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:194) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578085387Z at org.eclipse.jetty.http2.HTTP2Connection.produce(HTTP2Connection.java:208) ~[http2-common-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578088148Z at org.eclipse.jetty.http2.HTTP2Connection.onFillable(HTTP2Connection.java:155) ~[http2-common-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578091168Z at org.eclipse.jetty.http2.HTTP2Connection$FillableCallback.succeeded(HTTP2Connection.java:378) ~[http2-common-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.578097241Z at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579094073Z at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:558) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579119098Z at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:379) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579123424Z at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:146) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579126373Z at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579134694Z at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[jetty-io-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579138580Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579142581Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579146023Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579149350Z at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579152719Z at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579156427Z at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579159726Z at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) ~[jetty-util-10.0.13.jar:10.0.13]
2023-03-31T08:32:48.579163355Z at java.lang.Thread.run(Thread.java:833) [?:?]
2023-03-31T08:32:48.579166232Z Caused by: org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at https://localhost:8984/solr: Cannot invoke "java.util.Set.stream()" because "roles" is null
2023-03-31T08:32:48.579169670Z at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:745) ~[solr-solrj-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.579173434Z at org.apache.solr.client.solrj.impl.HttpSolrClient.lambda$httpUriRequest$0(HttpSolrClient.java:310) ~[solr-solrj-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.579176766Z at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
2023-03-31T08:32:48.579179898Z at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:289) ~[solr-solrj-9.2.0.jar:9.2.0 92c5515e2918c22513f7aa527d6c6db943150fea - houston - 2023-03-20 20:30:42]
2023-03-31T08:32:48.579183134Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
2023-03-31T08:32:48.579195441Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
2023-03-31T08:32:48.579199110Z ... 1 more
> NP because roles is null
> ------------------------
>
> Key: SOLR-16729
> URL: https://issues.apache.org/jira/browse/SOLR-16729
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Server, SolrCloud
> Affects Versions: 9.2
> Reporter: Thomas Wöckinger
> Priority: Major
>
> When using SolrCloud with following simple security.json
>
> {code:java}
> {
> "authentication": {
> "class": "solr.BasicAuthPlugin",
> "blockUnknown": true,
> "credentials": {
> "blue": "xxxx"
> }
> },
> "authorization": {
> "class": "solr.RuleBasedAuthorizationPlugin",
> "permissions": [{
> "name": "all",
> "role": "admin"
> }],
> "user-role": {
> "blue": "admin"
> }
> }
> }
> {code}
>
> After login and clicking on *Cloud* in Admin UI following exception shows up in the logs (see next comment)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org