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


##########
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:
   humm....   I think I missed your comment....    I will say, I 've though 
about going through various modules and seeing if we could put our comments on 
a diet...  kind of like when we used to go through looking for stylistic 
warnnings from intellji!



-- 
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