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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7a419b7  SOLR-15276: Use same pattern on GET as on DELETE and be more 
RESTful. (#40)
7a419b7 is described below

commit 7a419b775cae6cc5362f943d8965d770d10d06ac
Author: Eric Pugh <[email protected]>
AuthorDate: Tue Mar 23 14:39:20 2021 -0400

    SOLR-15276: Use same pattern on GET as on DELETE and be more RESTful. (#40)
    
    * use same pattern as DELETE verb and be more restful
---
 solr/CHANGES.txt                                           | 5 ++++-
 solr/core/src/java/org/apache/solr/handler/ClusterAPI.java | 3 ++-
 solr/solr-ref-guide/src/major-changes-in-solr-9.adoc       | 2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 7874004..cc51469 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -94,12 +94,15 @@ when told to. The admin UI now tells it to. (Nazerke 
Seidan, David Smiley)
 * SOLR-2852: SolrJ: remove Woodstox dependency.  It was never truly required 
there.
   Software doing lots of XML processing can choose to add it or alternatives 
if they wish.
   (David Smiley)
-  
+
 * SOLR-15161: Don't encourage users to hack JSON response mimetype by 
documenting in examples how to
   specify wt=json use mimetype of text/plain.  (Eric Pugh)
 
 * SOLR-15203: remove deprecated parameter name jwkUrl in favour of jwksUrl for 
the JWK Url. (Eric Pugh)
 
+* SOLR-15276: V2 API call to look up async request status restful style of 
"/cluster/command-status/1000" instead of 
"/cluster/command-status?requestid=1000". (Eric Pugh)
+
+
 Other Changes
 ----------------------
 * SOLR-14656: Autoscaling framework removed (Ishan Chattopadhyaya, noble, Ilan 
Ginzburg)
diff --git a/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java 
b/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
index 95fc521..e8ef968 100644
--- a/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
+++ b/solr/core/src/java/org/apache/solr/handler/ClusterAPI.java
@@ -189,9 +189,10 @@ public class ClusterAPI {
   }
 
   @EndPoint(method = GET,
-      path = "/cluster/command-status",
+      path = "/cluster/command-status/{id}",
       permission = COLL_READ_PERM)
   public void getCommandStatus(SolrQueryRequest req, SolrQueryResponse rsp) 
throws Exception {
+    wrapParams(req, REQUESTID, req.getPathTemplateValues().get("id"));
     CollectionsHandler.CollectionOperation.REQUESTSTATUS_OP.execute(req, rsp, 
collectionsHandler);
   }
 
diff --git a/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc 
b/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
index 4a4ff60..c52bc47 100644
--- a/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
+++ b/solr/solr-ref-guide/src/major-changes-in-solr-9.adoc
@@ -155,6 +155,8 @@ escaping because it's inconsistent with the rest of Solr 
and was limiting.  This
 
 * SOLR-15203: Remove the deprecated `jwkUrl` in favour of `jwksUrl` when 
configuring JWT authentication.
 
+* SOLR-15276: V2 API call to look up async request status restful style of 
"/cluster/command-status/1000" instead of 
"/cluster/command-status?requestid=1000".
+
 === Upgrade Prerequisites in Solr 9
 
 * Upgrade all collections in stateFormat=1 to stateFormat=2 *before* upgrading 
to Solr 9, as Solr 9 does not support the

Reply via email to