dsmiley commented on code in PR #5178:
URL: https://github.com/apache/solr/pull/5178#discussion_r4339608747


##########
solr/api/src/java/org/apache/solr/client/api/util/Constants.java:
##########
@@ -24,8 +24,18 @@ private Constants() {
 
   public static final String INDEX_TYPE_PATH_PARAMETER = "indexType";
   public static final String INDEX_NAME_PATH_PARAMETER = "indexName";
+
+  // "c" is accepted alongside "collections" because Solr internally forwards 
a v2 request to the
+  // node actually hosting a collection using the short "/c/{collection}/..." 
alias (see
+  // HttpSolrCall#sendRemoteProxy and V2HttpCall's "c"/"collections" 
handling); without it, any
+  // JAX-RS resource built on this prefix 404s with "Cannot find API for the 
path" whenever the
+  // request has to be proxied to another node.

Review Comment:
   It's not a codebase-wide issue (yet), it's on many AI-driven PRs like this 
one.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to