This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 9467f5e27e6 SOLR-16391: Fix CoresAPI integration in V2HttpCall (#3399)
9467f5e27e6 is described below

commit 9467f5e27e6ca62ec570f8d0920e748631cf25b8
Author: Houston Putman <[email protected]>
AuthorDate: Mon Jun 23 13:50:10 2025 -0500

    SOLR-16391: Fix CoresAPI integration in V2HttpCall (#3399)
    
    (cherry picked from commit 3fe7775a64d95550728983e9ab30b496510f3ebb)
---
 solr/core/src/java/org/apache/solr/api/V2HttpCall.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/api/V2HttpCall.java 
b/solr/core/src/java/org/apache/solr/api/V2HttpCall.java
index da70264c23f..24cb696aeee 100644
--- a/solr/core/src/java/org/apache/solr/api/V2HttpCall.java
+++ b/solr/core/src/java/org/apache/solr/api/V2HttpCall.java
@@ -174,7 +174,7 @@ public class V2HttpCall extends HttpSolrCall {
             }
           }
         }
-      } else if ("cores".equals(prefix)) {
+      } else if ("cores".equals(prefix) && pathSegments.size() > 1) {
         origCorename = pathSegments.get(1);
         core = cores.getCore(origCorename);
       }

Reply via email to