Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-15276: Use same pattern on GET as on DELETE and be more RESTful. (#40)

Eric Pugh7a419b775cae
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 78740044bf8..cc51469b01d 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 95fc5211518..e8ef968287e 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 4a4ff609693..c52bc47424e 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