[ 
https://issues.apache.org/jira/browse/SOLR-7988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14723600#comment-14723600
 ] 

ludovic Boutros commented on SOLR-7988:
---------------------------------------

I did not test this code but something like this should work:

{code:title=DefaultHandlerTest.java|borderStyle=solid}
private void defaultHandlerTest() {
    String collectionName = "defaultHandlerCollection";
    createCollection(collectionName, controlClientCloud, 2, 2);
    waitForRecoveriesToFinish(collectionName, false);
    try (CloudSolrClient cloudClient = createCloudClient(collectionName)) {

      LukeRequest lukeRequest = new LukeRequest();

      try {
        lukeResponse = lukeRequest.process(cloudClient);
      } catch (Exception e) {
        fail("Cannot find default luke request handler");
      }
    }
  }
{code}

> LukeRequest on default path is broken with CloudSolrClient
> ----------------------------------------------------------
>
>                 Key: SOLR-7988
>                 URL: https://issues.apache.org/jira/browse/SOLR-7988
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 5.3
>            Reporter: ludovic Boutros
>
> SOLR-7757 breaks the default access on the _LukeRequestHandler_ (/admin/luke) 
> with _CloudSolrClient_.
> See the following commit :
> https://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java?r1=1694556&r2=1694555&pathrev=1694556
> The name of the collection is not added to the request URL and therefore we 
> get a 404 error in the response.
> Defining the _LukeRequestHandler_ with another path in the _solrconfig_ is a 
> workaround but it's quite annoying. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to