colvinco commented on code in PR #3023: URL: https://github.com/apache/solr/pull/3023#discussion_r2008794161
########## solr/core/src/java/org/apache/solr/api/V2HttpCall.java: ########## @@ -174,7 +174,7 @@ public void call(SolrQueryRequest req, SolrQueryResponse rsp) { } } } - } else if ("cores".equals(prefix)) { + } else if ("cores".equals(prefix) && pathSegments.size() > 1) { origCorename = pathSegments.get(1); Review Comment: This is getting an index OOB if you request `/cores`, could combine the size check with the existing size check on the earlier if statement... -- 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