janhoy commented on a change in pull request #427: URL: https://github.com/apache/solr/pull/427#discussion_r777123318
########## File path: solr/core/src/java/org/apache/solr/handler/admin/InfoHandler.java ########## @@ -157,4 +158,17 @@ public SolrRequestHandler getSubHandler(String subPath) { public Boolean registerV2() { return Boolean.TRUE; } + + @Override + public Name getPermissionName(AuthorizationContext request) { + // Delegate permission to the actual handler + String path = request.getResource(); + String lastPath = path.substring(path.lastIndexOf("/") +1 ); + RequestHandlerBase handler = handlers.get(lastPath.toLowerCase(Locale.ROOT)); + if (handler != null) { + return handler.getPermissionName(request); + } else { + return null; Review comment: Good question. I used it as a fallback in line with what @noblepaul has used e.g. here https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/SchemaHandler.java#L112 but I have not tested what it actually does. In this case I think this path will never be reached. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org